@@ -23,7 +23,6 @@ import (
2323 "strings"
2424 "time"
2525
26- "github.com/go-logr/logr"
2726 "github.com/hashicorp/go-retryablehttp"
2827 "helm.sh/helm/v3/pkg/chart"
2928 "helm.sh/helm/v3/pkg/chartutil"
@@ -544,7 +543,7 @@ func (r *HelmReleaseReconciler) composeValues(ctx context.Context, hr v2.HelmRel
544543 }
545544 if data , ok := resource .Data [v .GetValuesKey ()]; ! ok {
546545 if v .Optional {
547- (logr . FromContext (ctx )).Info (fmt .Sprintf ("could not find optional key %s in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName ))
546+ (ctrl . LoggerFrom (ctx )).Info (fmt .Sprintf ("could not find optional key %s in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName ))
548547 continue
549548 }
550549 return nil , fmt .Errorf ("missing key '%s' in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName )
@@ -581,7 +580,7 @@ func (r *HelmReleaseReconciler) composeValues(ctx context.Context, hr v2.HelmRel
581580 }
582581 if data , ok := resource .Data [v .GetValuesKey ()]; ! ok {
583582 if v .Optional {
584- (logr . FromContext (ctx )).Info (fmt .Sprintf ("could not find optional key %s in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName ))
583+ (ctrl . LoggerFrom (ctx )).Info (fmt .Sprintf ("could not find optional key %s in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName ))
585584 continue
586585 }
587586 return nil , fmt .Errorf ("missing key '%s' in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName )
0 commit comments