diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 29e8e78e..a0bffd05 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -1,8 +1,8 @@ resources: -- manager.yaml + - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization images: -- name: controller - newName: ghcr.io/stakater/grafana-cloud-ansible-operator - newTag: v0.0.20 + - name: controller + newName: ghcr.io/stakater/grafana-cloud-ansible-operator + newTag: v0.0.20 diff --git a/config/manifests/bases/grafana-cloud-ansible-operator.clusterserviceversion.yaml b/config/manifests/bases/grafana-cloud-ansible-operator.clusterserviceversion.yaml index dc5dbbd7..3344a6e1 100644 --- a/config/manifests/bases/grafana-cloud-ansible-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/grafana-cloud-ansible-operator.clusterserviceversion.yaml @@ -13,36 +13,36 @@ spec: Grafana Cloud displayName: grafana-cloud-operator icon: - - base64data: "" - mediatype: "" + - base64data: "" + mediatype: "" install: spec: deployments: null strategy: "" installModes: - - supported: true - type: OwnNamespace - - supported: true - type: SingleNamespace - - supported: false - type: MultiNamespace - - supported: false - type: AllNamespaces + - supported: true + type: OwnNamespace + - supported: true + type: SingleNamespace + - supported: false + type: MultiNamespace + - supported: false + type: AllNamespaces keywords: - - grafana-cloud - - oncall - - sre - - dashboard - - grafana-sre - - grafana-oncall - - slo - - grafana-slo + - grafana-cloud + - oncall + - sre + - dashboard + - grafana-sre + - grafana-oncall + - slo + - grafana-slo links: - - name: Grafana Cloud Ansible Operator - url: https://grafana-cloud-ansible-operator.domain + - name: Grafana Cloud Ansible Operator + url: https://grafana-cloud-ansible-operator.domain maintainers: - - email: hello@stakater.com - name: stakater + - email: hello@stakater.com + name: stakater maturity: alpha provider: name: Stakater diff --git a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml index b6d4ddef..73989fd2 100644 --- a/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml +++ b/roles/grafana_cloud_operator/tasks/modify_alertmanager_secret.yml @@ -2,21 +2,21 @@ ansible.builtin.set_fact: modified_alertmanager_secret_content: > {{ (fetched_alertmanager_secret.resources[0].data['alertmanager.yaml'] | b64decode | from_yaml) | combine({ - "receivers": [ + 'receivers': [ { - "name": "receiver_name", - "webhook_configs": [{ - "url": "receiver_url" + 'name': receiver_name, + 'webhook_configs': [{ + 'url': receiver_url }] } ], - "route": { - "receiver": "receiver_name", - "routes": [ + 'route': { + 'receiver': receiver_name, + 'routes': [ { - "receiver": "receiver_name", - "match": { - "severity": "info | warning | critical" + 'receiver': receiver_name, + 'match': { + 'severity': 'info | warning | critical' } } ]