Skip to content

Commit

Permalink
Install CRDs for RMQ + NFD (#1313)
Browse files Browse the repository at this point in the history
Related-To: #1282
Related-To: #1308
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
  • Loading branch information
mnaser committed Jun 6, 2024
1 parent 410f511 commit eb16bba
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions roles/node_feature_discovery/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@
name: "{{ node_feature_discovery_helm_release_name }}"
namespace: "{{ node_feature_discovery_helm_release_namespace }}"

- name: Install all CRDs
run_once: true
changed_when: false
kubernetes.core.k8s:
state: present
definition: "{{ lookup('pipe', 'cat ' + role_path + '/../../charts/node-feature-discovery/crds/*.yaml') | regex_replace('- =$', '- \"=\"', multiline=True) | from_yaml_all }}" # noqa: yaml[line-length]
apply: true
server_side_apply:
field_manager: atmosphere
force_conflicts: true
tags:
- node-feature-discovery-crds

- name: Deploy Helm chart
run_once: true
kubernetes.core.helm:
Expand Down
13 changes: 13 additions & 0 deletions roles/rabbitmq_cluster_operator/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@
name: "{{ rabbitmq_cluster_operator_helm_release_name }}"
namespace: "{{ rabbitmq_cluster_operator_helm_release_namespace }}"

- name: Install all CRDs
run_once: true
changed_when: false
kubernetes.core.k8s:
state: present
definition: "{{ lookup('pipe', 'cat ' + role_path + '/../../charts/rabbitmq-cluster-operator/crds/*.yaml') | regex_replace('- =$', '- \"=\"', multiline=True) | from_yaml_all }}" # noqa: yaml[line-length]
apply: true
server_side_apply:
field_manager: atmosphere
force_conflicts: true
tags:
- rabbitmq-cluster-operator-crds

- name: Deploy Helm chart
run_once: true
kubernetes.core.helm:
Expand Down

0 comments on commit eb16bba

Please sign in to comment.