forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new fields in VMware and BareMetal cluster resources (GoogleCloud…
…Platform#8681) * 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
- Loading branch information
1 parent
b60a9cd
commit 93aa981
Showing
6 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -747,6 +747,28 @@ properties: | |
required: true | ||
description: | | ||
The name of the user, e.g. `[email protected]`. | ||
- !ruby/object:Api::Type::NestedObject | ||
name: 'binaryAuthorization' | ||
description: Binary Authorization related configurations. | ||
properties: | ||
- !ruby/object:Api::Type::Enum | ||
name: 'evaluationMode' | ||
description: | | ||
Mode of operation for binauthz policy evaluation. If unspecified, | ||
defaults to DISABLED. | ||
values: | ||
- DISABLED | ||
- PROJECT_SINGLETON_POLICY_ENFORCE | ||
- !ruby/object:Api::Type::NestedObject | ||
name: 'upgradePolicy' | ||
description: The cluster upgrade policy. | ||
properties: | ||
- !ruby/object:Api::Type::Enum | ||
name: 'policy' | ||
description: Specifies which upgrade policy to use. | ||
values: | ||
- SERIAL | ||
- CONCURRENT | ||
- !ruby/object:Api::Type::String | ||
name: "uid" | ||
description: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,9 @@ resource "google_gkeonprem_vmware_cluster" "<%= ctx[:primary_resource_id] %>" { | |
} | ||
vm_tracking_enabled = true | ||
enable_control_plane_v2 = true | ||
upgrade_policy { | ||
control_plane_only = true | ||
} | ||
authorization { | ||
admin_users { | ||
username = "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,6 +367,9 @@ func testAccGkeonpremVmwareCluster_vmwareClusterUpdateManualLbStart(context map[ | |
} | ||
vm_tracking_enabled = true | ||
enable_control_plane_v2 = true | ||
upgrade_policy { | ||
control_plane_only = true | ||
} | ||
authorization { | ||
admin_users { | ||
username = "[email protected]" | ||
|
@@ -449,6 +452,9 @@ func testAccGkeonpremVmwareCluster_vmwareClusterUpdateManualLb(context map[strin | |
} | ||
vm_tracking_enabled = false | ||
enable_control_plane_v2 = false | ||
upgrade_policy { | ||
control_plane_only = true | ||
} | ||
authorization { | ||
admin_users { | ||
username = "[email protected]" | ||
|