Configmap error

Helm chart upgrade fails because no configmap is found.

Symptoms

You might see the following error message:

Error: UPGRADE FAILED: no ConfigMap with the name "audit-logging-fluentd-ds-elk-config" found

Causes

The audit logging configmap is missing.

Resolving the problem

Delete all the audit-logging-fluentd-ds- configmaps.

kubectl get cm -n kube-system -o wide | grep audit-logging-fluentd-ds- | awk '{print $1}' | xargs kubectl delete cm -n kube-system