-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add workload identity support #234
Conversation
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.
Thanks for looking at this!
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.
moved changes from modules to autogen
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.
reviewed
Thanks for the contribution. Please resolve the merge conflicts and this looks good to go. |
…terraform-google-kubernetes-engine # Conflicts: # autogen/cluster_zonal.tf
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.
Thanks for the fix! Could you also run make generate
to generate the submodules?
@morgante workload-metadata-config test failing after merge of this PR with terraform crash, updating provider to 2.12 fix the issue, but otherwise:
|
I'm using the module with provider version 2.12 since it was merged and works perfectly. I created a cluster successfully. |
@kopachevsky Yes we just need to update to the latest provider. |
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.
The workload_identity_config
fails when you have a pre-existing cluster made without this changeset. It tries to change the cluster definition to add an empty block workload_identity_config {}
, with the provider failing: Error: googleapi: Error 400: Must specify a field to update., badRequest.
This might be better served by a dynamic terraform block, to prevent the block from being defined at all if var.identity_namespace
is empty.
@richardmcsong I've opened a PR to implement the fix you suggested. Thank you for pointing it. |
Workload Identity is already available in beta and it works well.
This PR adds it to beta-private-cluster.