-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add membership_type field to cluster/fleet #15221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
faa3cb1
8b4cf33
7ffbe92
0d507c5
8fbc419
4c48b33
b19490f
430981f
30be8e1
4c988f2
25d0927
78cd424
0e6252f
4ec4cbf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2450,6 +2450,13 @@ func ResourceContainerCluster() *schema.Resource { | |
| Computed: true, | ||
| Description: `Location of the fleet membership, for example "us-central1".`, | ||
| }, | ||
| "membership_type": { | ||
| Type: schema.TypeString, | ||
| Optional: true, | ||
| ValidateFunc: validation.StringInSlice([]string{"MEMBERSHIP_TYPE_UNSPECIFIED", "LIGHTWEIGHT"}, false), | ||
| Description: `The type of the cluster's fleet membership.`, | ||
| DiffSuppressFunc: tpgresource.EmptyOrDefaultStringSuppress("MEMBERSHIP_TYPE_UNSPECIFIED"), | ||
|
||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
|
|
@@ -6570,6 +6577,7 @@ func expandFleet(configured interface{}) *container.Fleet { | |
| config := l[0].(map[string]interface{}) | ||
| return &container.Fleet{ | ||
| Project: config["project"].(string), | ||
| MembershipType: config["membership_type"].(string), | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -7680,6 +7688,7 @@ func flattenFleet(c *container.Fleet) []map[string]interface{} { | |
| "membership_id": membership_id, | ||
| "membership_location": membership_location, | ||
| "pre_registered": c.PreRegistered, | ||
| "membership_type": c.MembershipType, | ||
| }, | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.