Mohammed Naser | 5bd0448 | 2023-01-20 20:40:54 -0500 | [diff] [blame] | 1 | # 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 Naser | 15de486 | 2024-06-05 14:52:30 -0400 | [diff] [blame] | 15 | - 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 Naser | 5bd0448 | 2023-01-20 20:40:54 -0500 | [diff] [blame] | 28 | - 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 Talbot | 78a774a | 2024-09-25 10:15:36 -0600 | [diff] [blame] | 35 | kubeconfig: "{{ node_feature_discovery_helm_kubeconfig }}" |
Mohammed Naser | 5bd0448 | 2023-01-20 20:40:54 -0500 | [diff] [blame] | 36 | values: "{{ _node_feature_discovery_helm_values | combine(node_feature_discovery_helm_values, recursive=True) }}" |