Skip to content

Conversation

@jonesbusy
Copy link
Contributor

Fix #329

This is a breaking change since the validator method changed.

The oldResource is never null. It's only different when performing an UPDATE operation

Useful to validate immutable field on the spec

@jonesbusy jonesbusy force-pushed the feature/support-old-resource branch from 952ac17 to bf93df3 Compare May 15, 2025 11:09
@jonesbusy
Copy link
Contributor Author

Applied spotless

@csviri
Copy link
Contributor

csviri commented May 15, 2025

@jonesbusy there some end to end test failing, this might be actually unrelated to you PR, if you could take a look however, that would be great

@jonesbusy
Copy link
Contributor Author

Mhh I need to try to run those end2end tests locally as well

Can you try to run again the job to be sure it's not flaky?

@csviri
Copy link
Contributor

csviri commented May 15, 2025

Mhh I need to try to run those end2end tests locally as well

Can you try to run again the job to be sure it's not flaky?

I'm pretty sure e2e broke some point, not a result of this PR. If you have time pls take a look in a separate PR, otherwise I will try to do eventually.

@csviri
Copy link
Contributor

csviri commented May 21, 2025

Will merge this now and take a look on e2e later. Thank you @jonesbusy

@csviri csviri merged commit 9559e32 into operator-framework:main May 21, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validation of immutable fields, passing oldResource from admission request

2 participants