Skip to content

Commit 8ddef6a

Browse files
authored
tgc-revival: fix alloydb cluster tests (#15612)
1 parent 6771bd3 commit 8ddef6a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

mmv1/products/alloydb/Cluster.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ custom_code:
6060
pre_update: 'templates/terraform/pre_update/alloydb_cluster.go.tmpl'
6161
pre_delete: 'templates/terraform/pre_delete/alloydb_cluster.go.tmpl'
6262
constants: 'templates/terraform/constants/alloydb_cluster.go.tmpl'
63+
tgc_decoder: 'templates/tgc_next/decoders/alloydb_cluster.go.tmpl'
6364
custom_diff:
6465
- 'alloydbClusterCustomizeDiff'
6566
# Skipping the sweeper because we need to force-delete clusters.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// password is missing in CAI asset, but password is required in Terraform
2+
if res["initialUser"] == nil && res["clusterType"] == "PRIMARY" {
3+
res["initialUser"] = map[string]interface{}{
4+
"password": "hidden",
5+
}
6+
}
7+
8+
return res, hclData, nil

0 commit comments

Comments
 (0)