pulumi / pulumi-google-native

Apache License 2.0
70 stars 18 forks source link

gkehub.v1.FeatureMembership required for some GKE functions #736

Open rawkode opened 1 year ago

rawkode commented 1 year ago

Hello!

Issue details

GKE provides Anthos ConfigManagement, with a bunch of other features, through GKE Hub.

Currently, we can provision the gkehub.Membership and gkehub.Feature, but we can't tie these together with a FeatureMembership as the type doesn't exist within this SDK.

Here's an article on doing this with Terraform:

https://cloud.google.com/blog/topics/anthos/using-terraform-to-enable-config-sync-on-a-gke-cluster

Affected area/feature

GKEHub

viveklak commented 1 year ago

I believe membership is specified using https://github.com/pulumi/pulumi-google-native/blob/3511013d45045ed5692e7ef2cff953b55f5498f6/sdk/nodejs/gkehub/v1/feature.ts#L156. However, according to the api spec, this field is supposed to be a map from string to a type however this is being specified as a string to string map in the schema. That seems to be a schema generation bug.