We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274bf58 commit 1843de1Copy full SHA for 1843de1
mmv1/templates/terraform/pre_update/alloydb_cluster.go.erb
@@ -1,8 +1,3 @@
1
-// Restrict modification of cluster_type from PRIMARY to SECONDARY as it is an invalid operation
2
-if d.HasChange("cluster_type") && d.Get("cluster_type") == "SECONDARY" {
3
- return fmt.Errorf("Can not convert a primary cluster to a secondary cluster.")
4
-}
5
-
6
// Restrict setting secondary_config if cluster_type is PRIMARY
7
if d.Get("cluster_type") == "PRIMARY" && !tpgresource.IsEmptyValue(reflect.ValueOf(d.Get("secondary_config"))) {
8
return fmt.Errorf("Can not set secondary config for primary cluster.")
0 commit comments