Skip to content

Commit ae68551

Browse files
committed
updated this method to setControllerReference instead of setOwnerReference
the setOwnerReferece wasn't adding controller: true to the image section
1 parent 1ace6f7 commit ae68551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/postgrescluster/pgbackrest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ func (r *Reconciler) copyRestoreConfiguration(ctx context.Context,
15371537
Data: sourceSSHConfig.Data,
15381538
}
15391539
// set ownership refs according to PostgresCluster being created (not the source cluster)
1540-
if err := r.setOwnerReference(cluster, restoreSSHConfig); err != nil {
1540+
if err := r.setControllerReference(cluster, restoreSSHConfig); err != nil {
15411541
return errors.WithStack(err)
15421542
}
15431543
restoreSSHConfig.SetGroupVersionKind(corev1.SchemeGroupVersion.WithKind("Secret"))

0 commit comments

Comments
 (0)