Kubelet csr approver fixes (#10165)

* Fix upgrade-path for kubelet-csr-approver

Fixes an error when you enable kubelet-csr-approver when upgrading.
It hangs waiting for the certificate to be approved since the
kubelet-csr-approver is not installed yet.

* Add missing package when using helm role
This commit is contained in:
James
2023-06-06 09:27:00 +00:00
committed by GitHub
parent 18d84db41c
commit 4c76feb574
11 changed files with 38 additions and 1 deletions

View File

@@ -1,4 +1,23 @@
---
- name: Helm | Gather os specific variables
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml"
- defaults.yml
paths:
- ../vars
skip: true
- name: Helm | Install PyYaml
package:
name: "{{ pyyaml_package }}"
state: present
- name: Helm | Download helm
include_tasks: "../../../download/tasks/download_file.yml"
vars:

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: python3-pyyaml

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: python3-yaml

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: python3-pyyaml

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: python3-pyyaml

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: PyYAML

View File

@@ -0,0 +1,2 @@
---
pyyaml_package: python3-yaml