-
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
Deprecation warning for workload_metadata_config parameter #1024
Comments
Permadiffs should be addressed at the provider. Please open a bug here: https://github.com/hashicorp/terraform-provider-google/issues |
@morgante won't the deprecation warning
be an issue in either case (esp. if the module is supporting both old and new versions of the provider)? |
Also wondering if I may be missing a setting needed for this to not register? Oddly, a plan with the same provider version didn't seem to exhibit this issue a couple of hours ago when I updated to the latest provider versions 🤔 I did try pinning a version or two back of this module (as well as the provider), and neither seemed to fix it. |
Oh sorry, I missed the deprecation warning. Yes we should fix that.
My guess is the API behavior changed. |
Oh, derp. yeah, I've seen that happen before |
I forked the module localy and changed the deprecated node_metadata to node and to the value GKE_METADATA instead of the previous GKE_METADATA_SERVER and seems the error has gone |
For anyone is interested, i had to pin the exact provider version in my terraform configuration like this to not having the plan drift
|
FYI, regarding version pinning, I only needed to pin the |
Hrm. I tried pinning one version back and didn’t have any luck, but will try it again. |
3.87.0 worked for me too |
FYI, upgrading to 3.90.0 does indeed seem to resolve this issue, but now I'm getting a deprecation warning for basic auth. Reported here: #1042 |
The issue has been fixed in 3.90.1: hashicorp/terraform-provider-google#10479 |
using 3.90.1 |
This is broken again in 4.0+ |
I'm getting the following as permadrift with https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/modules/beta-private-cluster and Google provider v3.88.0:
If I explicitly set
node_metadata = "GKE_METADATA_SERVER"
, I get a deprecation warning about node_metadata being deprecated for mode, presumably from:terraform-google-kubernetes-engine/modules/beta-private-cluster/cluster.tf
Line 234 in 660ddc9
Either way, I can “apply” the drift, but it shows up on the next plan / apply. Is there a way to avoid this?
The text was updated successfully, but these errors were encountered: