Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
John2020-cyber committed Jan 9, 2025
1 parent 8bb8625 commit 0c8251a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,12 @@
vars:
receiver_name: "{{ item.grafana_details.name }}"
receiver_url: "{{ item.grafana_details.link }}"
namespace: "{{ item.cluster.name }}"
transformed_namespace: "{{ item.cluster.name | regex_replace('^(.*?)-.*$', '\\1') }}"
cluster_name: "{{ item.cluster.name }}"
provision_mode: "hubAndSpoke"
loop: "{{ mapped_integrations }}"
loop_control:
label: "{{ item.cluster.name }}"
when: create_integration_for_dict is defined and create_integration_for_dict | length > 0

# Skipped when manifestwork_creation_results is not defined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
- name: Transform and store namespaces for the current cluster
ansible.builtin.set_fact:
namespace: "{{ namespace | regex_replace('^(.*?)-.*$', '\\1') }}"

- name: Decode and modify alertmanager secret configuration
ansible.builtin.set_fact:
modified_alertmanager_secret_content: >
Expand Down Expand Up @@ -84,7 +80,7 @@
kind: ManifestWork
metadata:
name: "{{ receiver_name }}-manifestwork-grafana-oncall"
namespace: "{{ namespace }}"
namespace: "{{ transformed_namespace }}"
spec:
workload:
manifests:
Expand Down

0 comments on commit 0c8251a

Please sign in to comment.