From 3116a104294952336c79f609843d8883a2a5845d Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 12 Jun 2023 19:36:36 -0400 Subject: [PATCH] fix: k3s not cleaning up the cilium helmchart --- ansible/playbooks/cluster-installation.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ansible/playbooks/cluster-installation.yml b/ansible/playbooks/cluster-installation.yml index 35d20bf4..4e46d43a 100644 --- a/ansible/playbooks/cluster-installation.yml +++ b/ansible/playbooks/cluster-installation.yml @@ -108,7 +108,6 @@ - op: add path: /metadata/annotations/helmcharts.helm.cattle.io~1unmanaged value: "true" - wait: true - name: Remove the Cilium HelmChart CR kubernetes.core.k8s: kubeconfig: /etc/rancher/k3s/k3s.yaml @@ -116,7 +115,16 @@ kind: HelmChart namespace: kube-system state: absent - wait: true + - name: Remove finializers on the Cilium HelmChart + kubernetes.core.k8s: + kubeconfig: /etc/rancher/k3s/k3s.yaml + name: cilium + kind: HelmChart + namespace: kube-system + state: patched + definition: + metadata: + finalizers: [] # Cleaning up certain manifests from the /var/lib/rancher/k3s/server/manifests directory # is needed because k3s has an awesome "feature" to always re-deploy them when the k3s