blob: a6e316feaf08d61c2e4ab5834cef3f16ba54d277 [file] [log] [blame]
Mohammed Naser5bd04482023-01-20 20:40:54 -05001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
Mohammed Naser15de4862024-06-05 14:52:30 -040015- name: Install all CRDs
16 run_once: true
17 changed_when: false
18 kubernetes.core.k8s:
19 state: present
20 definition: "{{ lookup('pipe', 'cat ' + role_path + '/../../charts/node-feature-discovery/crds/*.yaml') | regex_replace('- =$', '- \"=\"', multiline=True) | from_yaml_all }}" # noqa: yaml[line-length]
21 apply: true
22 server_side_apply:
23 field_manager: atmosphere
24 force_conflicts: true
25 tags:
26 - node-feature-discovery-crds
27
Mohammed Naser5bd04482023-01-20 20:40:54 -050028- name: Deploy Helm chart
29 run_once: true
30 kubernetes.core.helm:
31 name: "{{ node_feature_discovery_helm_release_name }}"
32 chart_ref: "{{ node_feature_discovery_helm_chart_ref }}"
33 release_namespace: "{{ node_feature_discovery_helm_release_namespace }}"
34 create_namespace: true
Austin Talbot78a774a2024-09-25 10:15:36 -060035 kubeconfig: "{{ node_feature_discovery_helm_kubeconfig }}"
Mohammed Naser5bd04482023-01-20 20:40:54 -050036 values: "{{ _node_feature_discovery_helm_values | combine(node_feature_discovery_helm_values, recursive=True) }}"