Update clone to support "primary" Annotation
With this absent, the PVCs would not create for the newly cloned
cluster, thus rendering it unusuable.
@@ -747,6 +747,9 @@ func createCluster(clientset *kubernetes.Clientset, client *rest.RESTClient, tas
// set up the target cluster
targetPgcluster := &crv1.Pgcluster{
ObjectMeta: meta_v1.ObjectMeta{
+ Annotations: map[string]string{
+ config.ANNOTATION_CURRENT_PRIMARY: targetClusterName,
+ },
Name: targetClusterName,
Labels: map[string]string{
config.LABEL_NAME: targetClusterName,
