-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
added boot_disk_kms_key to node_config #3044
added boot_disk_kms_key to node_config #3044
Conversation
I think it's fine to wait until the attribute has been released in library for the handwritten resources, that's typically what we've done |
0a01673
to
6429c00
Compare
Hi @megan07, https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek
|
@kirillmakhonin we share the schema for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of things!
@@ -244,6 +244,16 @@ var schemaNodeConfig = &schema.Schema{ | |||
}, | |||
}, | |||
}, | |||
|
|||
"boot_disk_kms_key": { | |||
<% if version.nil? || version == 'ga' -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's a new field that didn't exist in GA before, we can just add <% unless version == 'ga' -%>
gates around the field
@@ -627,7 +627,7 @@ func resourceSqlDatabaseInstanceCreate(d *schema.ResourceData, meta interface{}) | |||
for _, u := range users.Items { | |||
if u.Name == "root" && u.Host == "%" { | |||
err = retry(func() error { | |||
op, err = config.clientSqlAdmin.Users.Delete(project, instance.Name, u.Host, u.Name).Do() | |||
op, err = config.clientSqlAdmin.Users.Delete(project, instance.Name).Do() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd update the description to explain why we're doing this here, or I'd move it to the vendor
Fixes hashicorp/terraform-provider-google#5478
Added
boot_disk_kms_key
tonode_config
block.This will require us to update the vendor package
google.golang.org/api/container/v1beta1
, but the attribute we need hasn't been released yet, and the hash I updated it to for testing, broke another resource. Do I wait for it to be released? Or manually revert the broken package? Or try to find a different hash to update to?Release Note Template for Downstream PRs (will be copied)