Skip to content

Commit bc2caea

Browse files
Add new fields in VMware and BareMetal cluster resources (#8681) (#15765)
* add upgrade_policy in vmware_cluster * add disable_bundled_ingress in vmware_cluster * add upgrade_policy field in bare_metal_cluster * add binary_authorization field for bare_metal_cluster * remove disable_bundled_ingress field as the API change it not yet released * fix resource name conflicts in tests * remove unspecified enum item * Add new fields in update test * fix yaml format * Test the new fields changes in update test Signed-off-by: Modular Magician <[email protected]>
1 parent 7673820 commit bc2caea

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.changelog/8681.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```release-note:enhancement
2+
gkeonprem: added `upgrade_policy` field in `google_gkeonprem_vmware_cluster` resource (beta)
3+
```
4+
```release-note:enhancement
5+
gkeonprem: added `upgrade_policy` and `binary_authorization` fields in `google_gkeonprem_bare_metal_cluster` resource (beta)
6+
```

website/docs/r/gkeonprem_bare_metal_cluster.html.markdown

+31
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ resource "google_gkeonprem_bare_metal_cluster" "cluster-manuallb" {
162162
}
163163
}
164164
}
165+
binary_authorization {
166+
evaluation_mode = "DISABLED"
167+
}
168+
upgrade_policy {
169+
policy = "SERIAL"
170+
}
165171
}
166172
```
167173
## Example Usage - Gkeonprem Bare Metal Cluster Bgplb
@@ -926,6 +932,16 @@ The following arguments are supported:
926932
Specifies the security related settings for the Bare Metal User Cluster.
927933
Structure is [documented below](#nested_security_config).
928934

935+
* `binary_authorization` -
936+
(Optional)
937+
Binary Authorization related configurations.
938+
Structure is [documented below](#nested_binary_authorization).
939+
940+
* `upgrade_policy` -
941+
(Optional)
942+
The cluster upgrade policy.
943+
Structure is [documented below](#nested_upgrade_policy).
944+
929945
* `project` - (Optional) The ID of the project in which the resource belongs.
930946
If it is not provided, the provider project is used.
931947

@@ -1007,6 +1023,21 @@ The following arguments are supported:
10071023
(Required)
10081024
The name of the user, e.g. `[email protected]`.
10091025

1026+
<a name="nested_binary_authorization"></a>The `binary_authorization` block supports:
1027+
1028+
* `evaluation_mode` -
1029+
(Optional)
1030+
Mode of operation for binauthz policy evaluation. If unspecified,
1031+
defaults to DISABLED.
1032+
Possible values are: `DISABLED`, `PROJECT_SINGLETON_POLICY_ENFORCE`.
1033+
1034+
<a name="nested_upgrade_policy"></a>The `upgrade_policy` block supports:
1035+
1036+
* `policy` -
1037+
(Optional)
1038+
Specifies which upgrade policy to use.
1039+
Possible values are: `SERIAL`, `CONCURRENT`.
1040+
10101041
## Attributes Reference
10111042

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

website/docs/r/gkeonprem_vmware_cluster.html.markdown

+14
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ resource "google_gkeonprem_vmware_cluster" "cluster-manuallb" {
213213
}
214214
vm_tracking_enabled = true
215215
enable_control_plane_v2 = true
216+
upgrade_policy {
217+
control_plane_only = true
218+
}
216219
authorization {
217220
admin_users {
218221
username = "[email protected]"
@@ -363,6 +366,11 @@ The following arguments are supported:
363366
(Optional)
364367
Enable control plane V2. Default to false.
365368

369+
* `upgrade_policy` -
370+
(Optional)
371+
Specifies upgrade policy for the cluster.
372+
Structure is [documented below](#nested_upgrade_policy).
373+
366374
* `project` - (Optional) The ID of the project in which the resource belongs.
367375
If it is not provided, the provider project is used.
368376

@@ -647,6 +655,12 @@ The following arguments are supported:
647655
(Required)
648656
The name of the user, e.g. `[email protected]`.
649657

658+
<a name="nested_upgrade_policy"></a>The `upgrade_policy` block supports:
659+
660+
* `control_plane_only` -
661+
(Optional)
662+
Controls whether the upgrade applies to the control plane only.
663+
650664
## Attributes Reference
651665

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

0 commit comments

Comments
 (0)