@@ -23,7 +23,6 @@ import (
23
23
"strings"
24
24
"time"
25
25
26
- "github.com/go-logr/logr"
27
26
"github.com/hashicorp/go-retryablehttp"
28
27
"helm.sh/helm/v3/pkg/chart"
29
28
"helm.sh/helm/v3/pkg/chartutil"
@@ -544,7 +543,7 @@ func (r *HelmReleaseReconciler) composeValues(ctx context.Context, hr v2.HelmRel
544
543
}
545
544
if data , ok := resource .Data [v .GetValuesKey ()]; ! ok {
546
545
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 ))
548
547
continue
549
548
}
550
549
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
581
580
}
582
581
if data , ok := resource .Data [v .GetValuesKey ()]; ! ok {
583
582
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 ))
585
584
continue
586
585
}
587
586
return nil , fmt .Errorf ("missing key '%s' in %s '%s'" , v .GetValuesKey (), v .Kind , namespacedName )
0 commit comments