Open npitts0811 opened 1 year ago
@npitts0811 Could you please try adding the location as "global" explicitly in the spec, and see if the error goes away?
spec:
...
location: "global"
...
@diviner524 we've since worked around the issue by recreating our triggers, but prior to that, the testing we did included adding location: global
to an existing trigger as a possible fix. Unfortunately, it did not resolve the issue for us- we were still met with the same immutable field message. The only way we could get around the issue was to recreate the CloudBuiltTrigger resource.
Providing a bit more context on what is happening under the hood:
Terraform code backfills the location "global" during resource import (instead of resource read):
And this location value of "global" is reset to zero value in Config Connector controller before the controller performs a resource read.
We are looking into a proper change to solve this case.
Is there any update on this issue? I'm still facing this problem (using KCC version 1.102.0) and to complicate things further, every time I need to update a CloudBuildTrigger (which requires recreating the resource) they get stuck on DeleteFailed
and I have to manually remove the finalizers, which is obviously not ideal!
Checklist
Bug Description
We upgraded to v1.96.0 today; after the upgrade, our CloudBuildTrigger resources that were created prior to v1.96.0 are now in an UpdateFailed state. The error states
Update call failed: cannot make changes to immutable field(s): [location]
; we are not setting/managing thelocation
attribute yet as support is introduced with v1.96.0. Presumably, this issue will occur with all CloudBuildTriggers that are updated from previous versions to v1.96.0.Additional Diagnostic Information
na
Kubernetes Cluster Version
v1.22.12-gke.2300
Config Connector Version
1.96.0
Config Connector Mode
namespaced mode (default)
Log Output
Describe output for a CloudBuildTrigger resource post upgrade (truncated for readability/privacy); it was not failing prior to KCC upgrade. Note, location is not being defined.