blob: a6e316feaf08d61c2e4ab5834cef3f16ba54d277 [file] [log] [blame] [edit]
# Copyright (c) 2023 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# 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:
name: "{{ node_feature_discovery_helm_release_name }}"
chart_ref: "{{ node_feature_discovery_helm_chart_ref }}"
release_namespace: "{{ node_feature_discovery_helm_release_namespace }}"
create_namespace: true
kubeconfig: "{{ node_feature_discovery_helm_kubeconfig }}"
values: "{{ _node_feature_discovery_helm_values | combine(node_feature_discovery_helm_values, recursive=True) }}"