Skip to content

Commit

Permalink
[stable/2023.1] Install CRDs for RMQ + NFD (#1321)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #1313
/assign mnaser
  • Loading branch information
vexxhost-bot authored Jun 5, 2024
1 parent 93b95c8 commit 435dafb
Show file tree
Hide file tree
Showing 2 changed files with 29 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 @@ -12,6 +12,19 @@
# License for the specific language governing permissions and limitations
# under the License.

- 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
16 changes: 16 additions & 0 deletions roles/rabbitmq_cluster_operator/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@
# License for the specific language governing permissions and limitations
# under the License.

- 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/' + item + '/*.yaml') | regex_replace('- =$', '- \"=\"', multiline=True) | from_yaml_all }}" # noqa: yaml[line-length]
apply: true
server_side_apply:
field_manager: atmosphere
force_conflicts: true
loop:
- messaging-topology-operator
- rabbitmq-cluster
tags:
- rabbitmq-cluster-operator-crds

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

0 comments on commit 435dafb

Please sign in to comment.