-
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
fix: resolve deprecation warning for binary authorization #1332
fix: resolve deprecation warning for binary authorization #1332
Conversation
56f6daf
to
e890e1e
Compare
Hi @bharathkkb thanks again. I'm not 100% sure if the tests (e.g., terraform-google-kubernetes-engine/test/integration/beta_cluster/controls/gcloud.rb Lines 82 to 85 in 35b2bf5
binaryAuthorization even in fairly recent gcloud versions, so guessing it should be Ok (side note: is it just because of an old version of inspec, or why do most of the tests rely on shellouts to gcloud instead of the native inspec resources?)
|
Actually, got this after quickly creating a test cluster with binary auth enabled, so updating the test cases as well:
|
enable_binary_authorization is now deprecated in favor of the binary_authorization block. This preserves the module's interface, but updates the underlying behavior Fixes terraform-google-modules#1331
e890e1e
to
e533ad5
Compare
@wyardley |
Also confirmed that a cluster created with the existing version of the module seems to get this:
So we'll need to test whether / how well the upgrade process is (whether it's breaking or not); going to try to do a quick pass to see if I can do some kind of check of that. If not, we could try using the enabled parameter, but just in the |
So, I tried creating a cluster with the old version of the module, applying based on my branch. This resulted in the following diff, which was non-destructive and applied cleanly (but slowly).
After creating a cluster with the old version of the module:
It's briefly unset during apply, and then after applying the changes:
Would be great if someone could confirm also that this is the correct setting, though from what I can tell, I think this is the right behavior. I assume this is Ok to roll out as a "non breaking" change? But may still cause some user confusion, since the new setting is kind of non-obviously named. Also, is it expected that the old resource attribute gets toggled to |
added a docs fix to provide at least slightly more information in the provider docs |
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 PR @wyardley and thanks for testing out the upgrade path!
…google-modules#1332) enable_binary_authorization is now deprecated in favor of the binary_authorization block. This preserves the module's interface, but updates the underlying behavior Fixes terraform-google-modules#1331
enable_binary_authorization
is now deprecated in favor of thebinary_authorization
block. This preserves the module's interface, but updates the underlying behaviorFixes #1331