-
Notifications
You must be signed in to change notification settings - Fork 187
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
Immutable field detection #834
Comments
We detect immutable errors using Kubernetes func IsImmutableError(err error) bool {
// Detect immutability like kubectl does
// https://github.com/kubernetes/kubectl/blob/8165f83007/pkg/cmd/apply/patcher.go#L201
if errors.IsConflict(err) || errors.IsInvalid(err) {
return true
}
return false
} The webhook response doesn't match Can you confirm that If kubectl fails with |
It fails with the following error:
|
@gdziwoki going to close this issue, we've added immutable error detection to Flux when using CEL or any custom webhook that errors out with
|
Before CEL transition rules was a thing, CRDs would use custom admission webhooks for CRD validation.
I have a
Kustomization
that manages a TargetGroupBindingKustomization
hasforce: true
but when I change an immutable field in the TargetGroupBinding I get an error on my Kustomization syncs:Is there any other way to force
kustomize-controller
to recreate those resources?My env:
Kubernetes EKS 1.24
kustomize-controller v0.31.0
The text was updated successfully, but these errors were encountered: