Skip to content

Commit

Permalink
Check for COO API before trying to delete any COO objects (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
csibbitt committed Aug 27, 2024
1 parent b046d56 commit ee94763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/servicetelemetry/tasks/component_alertmanager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
name: '{{ ansible_operator_meta.name }}'
namespace: '{{ ansible_operator_meta.namespace }}'
when:
- "'monitoring.rhobs' in api_groups"
- observability_strategy not in ['use_redhat', 'use_hybrid']

# TODO: expand the management of alertmanager receivers and move this functionality to a common location
Expand Down
1 change: 1 addition & 0 deletions roles/servicetelemetry/tasks/component_prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
name: '{{ ansible_operator_meta.name }}'
namespace: '{{ ansible_operator_meta.namespace }}'
when:
- "'monitoring.rhobs' in api_groups"
- observability_strategy not in ['use_redhat', 'use_hybrid']

- name: Set default prometheus service template
Expand Down

0 comments on commit ee94763

Please sign in to comment.