Skip to content

Commit

Permalink
Add regex_replace for infra (#35)
Browse files Browse the repository at this point in the history
* Add regex_replace for infra

* Multi line scalar block

* Update

* update

* update multiline

* Fix lint
  • Loading branch information
John2020-cyber authored Jan 2, 2024
1 parent 0ce29b7 commit c8815db
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 27 deletions.
8 changes: 4 additions & 4 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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.21
- name: controller
newName: ghcr.io/stakater/grafana-cloud-ansible-operator
newTag: v0.0.21
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
name: stakater
- email: [email protected]
name: stakater
maturity: alpha
provider:
name: Stakater
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

- name: Update hostname
ansible.builtin.set_fact:
cluster_name: "{{ node_info.resources[0].metadata.labels['kubernetes.io/hostname'] | regex_replace('-master.*', '') | regex_replace('-worker.*', '') }}"
cluster_name: >
"{{ node_info.resources[0].metadata.labels['kubernetes.io/hostname'] | regex_replace('-master.*', '')
| regex_replace('-worker.*', '') | regex_replace('-infra.*', '') }}"
- name: Determine if integration exists for the cluster
ansible.builtin.set_fact:
Expand Down

0 comments on commit c8815db

Please sign in to comment.