bugfix rel.Config is nil

Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Inteon
2021-07-02 15:08:41 +02:00
parent b4f65b47ed
commit 38b95f897f
+3
View File
@@ -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