<commit_before>---
- name: Change node-selector on default
  oc_edit:
    kind: namespace
    name: "{{ item }}"
    separator: ":"
    content:
      'metadata:annotations:openshift.io/node-selector': 'type=infra'
  with_items:
  - default
  - openshift-infra
  register: l_default_ns
  retries: 10
  delay: 5
  until: ('failed' not in l_default_ns) or (not l_default_ns.failed)
<commit_msg>Resolves missing name:default label Cluster provisioning was occurring with the `name:default` label missing from the default namespace. This caused user created projects to fail due to the reliance on this label by the `allow-from-default-namespace` NetworkPolicy.<commit_after>---
- name: Change node-selector on default
  oc_edit:
    kind: namespace
    name: "{{ item }}"
    separator: ":"
    content:
      'metadata:annotations:openshift.io/node-selector': 'type=infra'
  with_items:
  - default
  - openshift-infra
  register: l_default_ns
  retries: 10
  delay: 5
  until: ('failed' not in l_default_ns) or (not l_default_ns.failed)

- name: Label default namespace
  oc_label:
    name: default
    kind: namespace
    state: add
    labels: 
      - key: name
        value: default
{'fraction_non_alphanumeric': 0.10025273799494525, 'fraction_numerical': 0.005054759898904802, 'mean_word_length': 3.41635687732342, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644600', 'n_tokens_mistral': 383, 'n_tokens_neox': 365, 'n_words': 114}