Browse Source

remove unused bits from role

Grega Bremec 1 day ago
parent
commit
944b292448
1 changed files with 1 additions and 27 deletions
  1. 1 27
      playbooks/roles/deploy-operator/tasks/main.yml

+ 1 - 27
playbooks/roles/deploy-operator/tasks/main.yml

@@ -10,7 +10,7 @@
 #      channel:       which channel to install from
 #      namespace:     target namespace for subscription
 #      desired_csv:   for verification - wait for this CSV to appear
-#      og_namespaces: (list) operatorgroup namespaces
+#      og_namespaces: (list) operatorgroup namespaces (XXX not currently used XXX)
 #
 # This role must then be applied as:
 #
@@ -25,32 +25,6 @@
 #
 # NOTE: Do NOT test by checking for presence of API resources - they do not always get cleaned up.
 #
-#
-#
-# TODO: Maybe someday fix the JSONPath expression below. And figure out why check for a CSV.
-#- name: Check if the CSV exists already
-#  k8s_info:
-#    kubeconfig: tmp/kubeconfig-ocp4
-#    validate_certs: no
-#    api_version: operators.coreos.com/v1alpha1
-#    kind: clusterserviceversion
-#  register: all_csv
-#
-#- name: Find the wanted CSV among all CSVs
-#  set_fact:
-#    found_csv: "{{ (all_csv | community.general.json_query(\"resources[?metadata.name == \" + role.desired_csv + \"]\")) }}"
-#  when:
-#    - all_csv.resources is defined
-#    - (all_csv.resources | length) > 0
-#
-#- name: Get details about the CSV if found
-#  set_fact:
-#    csv_ns: "{{ found_csv[0] | community.general.json_query('metadata.namespace') }}"
-#    csv_name: "{{ found_csv[0] | community.general.json_query('metadata.name') }}"
-#  when:
-#    - found_csv is defined
-#    - (found_csv | length) > 0
-
 - name: Make sure the namespace is there
   k8s:
     kubeconfig: tmp/kubeconfig-ocp4