Skip to content
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

ssa: Detect immutable errors from CEL and custom webhooks #610

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

stefanprodan
Copy link
Member

@stefanprodan stefanprodan commented Jul 31, 2023

Custom admission webhooks such as those used by Google Cloud and Kubernetes CEL which reject requests due to immutable field changes do not comply with errors.IsInvalid. For Flux to be able to force apply resources rejected by these controllers, we have to do a match on the error string and look for is immutable.

Ref:

@stefanprodan stefanprodan added the area/server-side-apply SSA related issues and pull requests label Jul 31, 2023
@stefanprodan stefanprodan merged commit e34893a into main Jul 31, 2023
13 checks passed
@stefanprodan stefanprodan deleted the cel-immutablility branch July 31, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/server-side-apply SSA related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants