From 38b95f897f1a910e1ac8de371c2f910de034ff15 Mon Sep 17 00:00:00 2001 From: Inteon <42113979+inteon@users.noreply.github.com> Date: Fri, 2 Jul 2021 15:08:41 +0200 Subject: [PATCH] bugfix rel.Config is nil Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com> --- cmd/ctl/pkg/install/uninstall.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/ctl/pkg/install/uninstall.go b/cmd/ctl/pkg/install/uninstall.go index fa0718099..d7cef78e9 100644 --- a/cmd/ctl/pkg/install/uninstall.go +++ b/cmd/ctl/pkg/install/uninstall.go @@ -199,6 +199,9 @@ func (o *UninstallOptions) runUninstall() error { } func (o *UninstallOptions) chartAndOptionsFromRelease(rel *release.Release) (string, *chart.Chart, map[string]interface{}, error) { + if rel.Config == nil { + rel.Config = make(map[string]interface{}) + } // Overwrite the installCRDs flag so that crds are ONLY removed if the command flag is set rel.Config[installCRDsFlagName] = o.RemoveCrds