Skip to content

Commit

Permalink
adding variable ignore errors when installing an operator. (#4193)
Browse files Browse the repository at this point in the history
  • Loading branch information
varodrig authored Oct 25, 2021
1 parent 81a3f75 commit eb58ecd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ansible/roles/install_operator/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,8 @@ install_operator_catalogsource_image_tag: "v4.7_2021_04_12"
# install_operator_catalogsource_secrets:
# - my_pull_secret_name
install_operator_catalogsource_pullsecrets: []

# If issues with the operator, when creating the CSV, the playbook will continue executing.
# Accepted values: true , false
# Default value: false
install_operator_install_csv_ignore_error: 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 @@ -134,3 +134,4 @@
- r_csv.resources[0].status.phase is defined
- r_csv.resources[0].status.phase | length > 0
- r_csv.resources[0].status.phase == "Succeeded"
ignore_errors: "{{ install_operator_install_csv_ignore_error }}"
1 change: 1 addition & 0 deletions ansible/roles/install_operator/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
when: install_operator_action == "install"
include_tasks:
file: install.yml
ignore_errors: "{{ install_operator_install_csv_ignore_error }}"

- name: Remove the operator
when: install_operator_action == "remove"
Expand Down

0 comments on commit eb58ecd

Please sign in to comment.