Skip to content

Commit 1721ca1

Browse files
author
Jonathan S. Katz
committed
Update clone to support "primary" Annotation
With this absent, the PVCs would not create for the newly cloned cluster, thus rendering it unusuable.
1 parent f2f111e commit 1721ca1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

operator/cluster/clone.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,9 @@ func createCluster(clientset *kubernetes.Clientset, client *rest.RESTClient, tas
747747
// set up the target cluster
748748
targetPgcluster := &crv1.Pgcluster{
749749
ObjectMeta: meta_v1.ObjectMeta{
750+
Annotations: map[string]string{
751+
config.ANNOTATION_CURRENT_PRIMARY: targetClusterName,
752+
},
750753
Name: targetClusterName,
751754
Labels: map[string]string{
752755
config.LABEL_NAME: targetClusterName,

0 commit comments

Comments
 (0)