Skip to content

Commit 86b2616

Browse files
Add private_registry_config to VMware user and admin cluster resources. (#14165) (#23182)
[upstream:620b6d4de644cde24a2389dd317d620082a7d640] Signed-off-by: Modular Magician <[email protected]>
1 parent 4aedcd3 commit 86b2616

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.changelog/14165.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
gkeonprem: added `private_registry_config` field to `google_gkeonprem_vmware_admin_cluster` resource (beta)
3+
```

website/docs/r/gkeonprem_vmware_admin_cluster.html.markdown

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ resource "google_gkeonprem_vmware_admin_cluster" "admin-cluster-basic" {
7171
snat_pool = "test-snat-pool"
7272
}
7373
}
74+
private_registry_config {
75+
address = "test-address"
76+
ca_cert = "test-ca-cert"
77+
}
7478
}
7579
```
7680
## Example Usage - Gkeonprem Vmware Admin Cluster Full
@@ -164,6 +168,10 @@ resource "google_gkeonprem_vmware_admin_cluster" "admin-cluster-full" {
164168
platform_config {
165169
required_platform_version = "1.31.0"
166170
}
171+
private_registry_config {
172+
address = "test-address"
173+
ca_cert = "test-ca-cert"
174+
}
167175
}
168176
```
169177
## Example Usage - Gkeonprem Vmware Admin Cluster Metallb
@@ -208,6 +216,10 @@ resource "google_gkeonprem_vmware_admin_cluster" "admin-cluster-metallb" {
208216
enabled = true
209217
}
210218
}
219+
private_registry_config {
220+
address = "test-address"
221+
ca_cert = "test-ca-cert"
222+
}
211223
}
212224
```
213225

@@ -431,6 +443,11 @@ The following arguments are supported:
431443
The VMware platform configuration.
432444
Structure is [documented below](#nested_platform_config).
433445

446+
* `private_registry_config` -
447+
(Optional)
448+
Configuration for private registry.
449+
Structure is [documented below](#nested_private_registry_config).
450+
434451
* `project` - (Optional) The ID of the project in which the resource belongs.
435452
If it is not provided, the provider project is used.
436453

@@ -727,6 +744,16 @@ The following arguments are supported:
727744
(Output)
728745
The lifecycle state of the condition.
729746

747+
<a name="nested_private_registry_config"></a>The `private_registry_config` block supports:
748+
749+
* `address` -
750+
(Optional)
751+
The registry address.
752+
753+
* `ca_cert` -
754+
(Optional)
755+
The CA certificate public key for private registry.
756+
730757
## Attributes Reference
731758

732759
In addition to the arguments listed above, the following computed attributes are exported:

0 commit comments

Comments
 (0)