Skip to content

Commit 48ac017

Browse files
committed
Add log message in namespaced/release/observe.go
1 parent bbc31ac commit 48ac017

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/controller/namespaced/release/observe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func isUpToDate(ctx context.Context, kube client.Client, spec *v1beta1.ReleaseSp
8383
in := spec.ForProvider
8484

8585
if in.Chart.Name != ocm.Name {
86-
return false, nil
86+
return false, fmt.Errorf("expected chart name %s, got %s", in.Chart.Name, ocm.Name)
8787
}
8888

8989
mp := sets.New[xpv1.ManagementAction](spec.ManagementPolicies...)

0 commit comments

Comments
 (0)