Bladeren bron

add optional catalog_namespace variable

Grega Bremec 2 dagen geleden
bovenliggende
commit
45cc7f2958
1 gewijzigde bestanden met toevoegingen van 11 en 10 verwijderingen
  1. 11 10
      p0f/operators/roles/deploy-operators/tasks/main.yml

+ 11 - 10
p0f/operators/roles/deploy-operators/tasks/main.yml

@@ -3,15 +3,16 @@
 #
 # The following variables must exist:
 #
-#  added_operators:   (list)
-#    - catalog:       the catalog of the manifest
-#      package:       the name of the packagemanifest
-#      subscription:  the name of the operatorgroup and subscription (optional, defaults to package)
-#      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
-#      approval:      Automatic (default) or Manual
+#   added_operators:        (list)
+#     - catalog:            the catalog of the manifest
+#       catalog_namespace:  (optional) catalog namespace (defaults to openshift-marketplace)
+#       package:            the name of the packagemanifest
+#       subscription:       the name of the operatorgroup and subscription (optional, defaults to package)
+#       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
+#       approval:           Automatic (default) or Manual
 #
 # This role must then be applied as:
 #
@@ -122,7 +123,7 @@
     definition:
       spec:
         source: "{{ role.catalog }}"
-        sourceNamespace: openshift-marketplace
+        sourceNamespace: "{{ role.catalog_namespace | default('openshift-marketplace') }}"
         name: "{{ role.package }}"
         channel: "{{ role.channel }}"
         startingCSV: "{{ role.desired_csv }}"