From 4e7d15609522399b3986debb59b34dbc28c6641a Mon Sep 17 00:00:00 2001 From: chaunceyjiang Date: Mon, 10 Jan 2022 11:50:12 +0800 Subject: [PATCH] fix helm_controller assignment to entry in nil map --- pkg/controller/helm/helm_controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/helm/helm_controller.go b/pkg/controller/helm/helm_controller.go index 1c491c972..a09ced509 100644 --- a/pkg/controller/helm/helm_controller.go +++ b/pkg/controller/helm/helm_controller.go @@ -79,6 +79,10 @@ func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error { } func (r *Reconciler) defaultConfiguration(overrideValues map[string]string) map[string]string { + if overrideValues == nil { + //vendor/github.com/operator-framework/helm-operator-plugins/pkg/watches/watches.go:85-87 + overrideValues = make(map[string]string) + } if r.GatewayOptions.Repository != "" { overrideValues["controller.image.repository"] = r.GatewayOptions.Repository }