Open ace-n opened 2 years ago
@edwardmedia was there any additional info you needed?
(I'm not sure why this is assigned to me. 🙂 )
Hi @ace-n, this is an unfortunate situation where an api isn't declarative friendly. Our team doesn't have the capacity to take this on currently.
As a work around look to using lifecycle rules to get around this. Specifically ignore_changes.
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
Terraform 1.1.8; Go 1.17.2
Affected Resource(s)
Debug Output
Observed Behavior
Flaky
command
andargs
propertiesThe
template.spec.containers
property requirescommand
andargs
attributes (i.e. a default value is included) on update, but not on create.Flaky
labels
propertyA similar problem exists for
template.metadata.labels
.Deleted annotations
The
template.metadata.annotations
block does not preserve theautoscaling.knative.dev/maxScale
annotation.Steps to Reproduce
terraform init
, followed by aterraform apply
.terraform apply
.Workaround
Specify the defaults for these properties manually.
References
b/272362086