You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.
Terraform Version
Terraform v1.3.8
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v4.53.1
Affected Resource(s)
google_cloud_run_v2_service
Terraform Configuration Files
resource"google_cloud_run_v2_service""some_cloud_run" {
name="some_cloud_run"location="<any region you like>"ingress="INGRESS_TRAFFIC_ALL"launch_stage="BETA"template {
revision="one"annotations={
"run.googleapis.com/startup-cpu-boost"=true"run.googleapis.com/sessionAffinity"=true
}
containers {
image="<any image you like>"
}
execution_environment="EXECUTION_ENVIRONMENT_GEN2"
}
traffic {
type="TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST"percent=100
}
}
Expected Behavior
launch_stage = "BETA" should not be ignored.
Actual Behavior
launch_stage = "BETA" is ignored and BETA annotations are lost when a new revision is deployed.
It applies, new revision seems to be deployed OK. However, actually your BETA annotations are lost and the launch_stage is re-set to GA. As terraform plan confirms:
~ update in-place
Terraform will perform the following actions:
~ resource "google_cloud_run_v2_service" "some_cloud_run" {
id = "<some project>"
~ launch_stage = "GA" -> "BETA"
name = "some_cloud_run"
# (16 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
The above is a permadiff, too.
The text was updated successfully, but these errors were encountered:
czka
changed the title
BETA annotations lost and launch_stage re-set to GA
google_cloud_run_v2_service: BETA annotations lost and launch_stage re-set to GA
Feb 17, 2023
API decides what it returns. BETA in the request and GA is sent back.
Why? Is it the case that more than just the launch_stage annotation needs to be set for it to stick? e.g. does some other beta feature config need to be enabled aswell?
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
google_cloud_run_v2_service
Terraform Configuration Files
Expected Behavior
launch_stage = "BETA"
should not be ignored.Actual Behavior
launch_stage = "BETA"
is ignored and BETA annotations are lost when a new revision is deployed.Steps to Reproduce
terraform apply
.terraform plan
.google_cloud_run_v2_service.some_cloud_run
definition:terraform plan
now returnsNo changes. Your infrastructure matches the configuration.
. Seems legit.revision
to e.g.two
, to deploy a new image version.terraform apply
:launch_stage
is re-set toGA
. Asterraform plan
confirms:The text was updated successfully, but these errors were encountered: