diff --git a/pkg/system/system.go b/pkg/system/system.go index 27f2f18e68..22f08bdd69 100644 --- a/pkg/system/system.go +++ b/pkg/system/system.go @@ -160,10 +160,10 @@ func LoadSystemDefaults() *nbv1.NooBaa { if options.PrometheusNamespace != "" { sys.Spec.Autoscaler.PrometheusNamespace = options.PrometheusNamespace } -if options.NooBaaImage != "" { - image := options.NooBaaImage - sys.Spec.Image = &image -} + if options.NooBaaImage != "" { + image := options.NooBaaImage + sys.Spec.Image = &image + } if options.ImagePullSecret != "" { sys.Spec.ImagePullSecret = &corev1.LocalObjectReference{Name: options.ImagePullSecret} }