浏览代码

allow to override subscription name

Grega Bremec 3 天之前
父节点
当前提交
b5502eb91e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      playbooks/roles/deploy-operator/tasks/main.yml

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

@@ -6,6 +6,7 @@
 #  added_operators:   (list)
 #    - catalog:       the catalog of the manifest
 #      package:       the name of the packagemanifest
+#      subscription:  the name of the 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
@@ -76,7 +77,7 @@
     api_version: operators.coreos.com/v1alpha1
     kind: subscription
     namespace: "{{ role.namespace }}"
-    name: "{{ role.package }}"
+    name: "{{ role.subscription | default(role.package) }}"
     definition:
       spec:
         source: "{{ role.catalog }}"