Skip to content

Commit 7595583

Browse files
authored
fix: random annotation created in primary resource. (#6872)
When deployed with helm-operator, the primary custom resource would randomly get assigned "operator-sdk/primary-resource" and "operator-sdk/primary-resource-type" annotations. This commit fixes the issue. Signed-off-by: Sam Wang (holyspectral) <[email protected]>
1 parent 494cd72 commit 7595583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/helm/client/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *ownerRefInjectingClient) Build(reader io.Reader, validate bool) (kube.R
8181
ownerRef := metav1.NewControllerRef(c.owner, c.owner.GetObjectKind().GroupVersionKind())
8282
u.SetOwnerReferences([]metav1.OwnerReference{*ownerRef})
8383
} else {
84-
err := handler.SetOwnerAnnotations(u, c.owner)
84+
err := handler.SetOwnerAnnotations(c.owner, u)
8585
if err != nil {
8686
return err
8787
}

0 commit comments

Comments
 (0)