diff --git a/roles/node_feature_discovery/tasks/main.yml b/roles/node_feature_discovery/tasks/main.yml index dfbdab73c..25f8380ea 100644 --- a/roles/node_feature_discovery/tasks/main.yml +++ b/roles/node_feature_discovery/tasks/main.yml @@ -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: diff --git a/roles/rabbitmq_cluster_operator/tasks/main.yml b/roles/rabbitmq_cluster_operator/tasks/main.yml index 7164c21e7..565e797fd 100644 --- a/roles/rabbitmq_cluster_operator/tasks/main.yml +++ b/roles/rabbitmq_cluster_operator/tasks/main.yml @@ -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: