-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Auto added annotations serving.knative.dev/creator
and serving.knative.dev/lastModifier
do not play well with Terraform
#7583
Auto added annotations serving.knative.dev/creator
and serving.knative.dev/lastModifier
do not play well with Terraform
#7583
Comments
Retriaging to enhancement, since this is closer to additive behaviour than a bugfix. |
I disagree; this is an essential annotation for using By the way, the requirement for the BETA launch stage annotation was not originally there, and was added as a constraint later. I have resources in my tf state which are grandfathered in, it seems. I think I'd rather have it set up so that if you're using the terraform resource, it automatically adds that annotation if it isn't there. That would solve the original issue without needing to mess with ignored annotations, since most people are likely to not use annotations at all after it is no longer required to specify the launch stage annotation. |
I do not understand the previous comment. My request is about serving.knative.dev/creator and serving.knative.dev/lastModifier annotations. Launch stage should not be ignored. |
The PR ignores everything that contains |
My point was that most people are only using annotations to specify launch-stage, and that's only required because you can't use Given the approach that was taken, I agree that the ignoring strategy is a bit excessive. |
I'll contact the author and see if they'd like to revise it. You propose ignoring specifically and exclusively |
Hey I have used Knative and Cloud Run myself so i'm pretty confident there are no user settable annotations under the serving.knative.dev namespace. I had a look at the API Spec for Knative Serving at https://knative.dev/docs/serving/spec/knative-api-specification-1.0/ and it looks like annotations like serving.knative.dev/* are set by other components of Knative that end users shouldn't be manipulating. |
I have a PR to restrict the annotations to the specific values that Cloud Run adds. Better to be precise about what we ignore imo. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Cloud Run automatically adds annotations to the created resources
serving.knative.dev/creator
andserving.knative.dev/lastModifier
undermetadata[0].annotations
. This seems to cause troubles with Terraform (see example)Would it be possible to ignore them by default?
It seems that adding this config helps:
The text was updated successfully, but these errors were encountered: