Skip to content

Commit

Permalink
[install_operator] Add option install_operator_skip_operatorgroup to …
Browse files Browse the repository at this point in the history
…skip create operatorgroup (#8864)

* Update main.yml

* Update install.yml
  • Loading branch information
agonzalezrh authored Nov 25, 2024
1 parent 33aa2fe commit 1d5ecda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/roles/install_operator/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ install_operator_catalogsource_pullsecrets: []
# Accepted values: true , false
# Default value: false
install_operator_install_csv_ignore_error: false

# If your operator doesnt need to create a OperatorGroup, because it already exists, set to true
install_operator_skip_operatorgroup: false
1 change: 1 addition & 0 deletions ansible/roles/install_operator/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
name: "{{ install_operator_namespace }}"

- name: "Ensure OperatorGroup exists ({{ install_operator_name }})"
when: install_operator_skip_operatorgroup | default(false) | bool == false
kubernetes.core.k8s:
state: present
definition: "{{ lookup('template', 'operatorgroup.yaml.j2') | from_yaml }}"
Expand Down

0 comments on commit 1d5ecda

Please sign in to comment.