-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add proposal for an optional preflight check in kapp
for validating safety of CRD upgrades
#729
Add proposal for an optional preflight check in kapp
for validating safety of CRD upgrades
#729
Conversation
✅ Deploy Preview for carvel canceled.
|
Note: I will squash all the commits once this is in an approved state and ready to merge. |
[thought, non-blocking]: Have you considered use-cases where the CRD author/user would like to control the behaviour from the annotations on the CRD itself, say to bypass them all? Following the precedence of kapp's configuration and annotations I think one could argue for both. Maybe annotations are a potential footgun. |
@mamachanko Are you referring to a case where a user wants the preflight check enabled, but wants to ignore a specific CRD or which validations to run against a CRD? |
Exactly. |
So for ignoring a specific CRD, I don't think that is unreasonable but IMO isn't necessary for the base implementation and is something that can be added in the future. For annotations regarding what validations to run against the CRD, I think that is a bit more nuanced and likely opens up for a wealth of footguns. I think if there is a strong use case for that then I don't see why it couldn't be added, but I think for the initial implementation it makes the most sense to have either all the validations run or none of them (i.e check is enabled/disabled). |
Signed-off-by: everettraven <[email protected]>
28b0ff0
to
1acb1c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @everettraven for all that you have been doing to improve kapp ❤️
The proposal looks good to me.
Adding some thoughts as a side note for future: preflight checks might open up another realm (of templating and overlaying) for kapp which might fall outside it's philosophy of deploying and managing applications on kubernetes, so we need to be cautious about what we choose to configure using preflight checks.
Is this ready to merge? |
I believe this has now passed the lazy consensus period. I think it is good to merge. |
Please change the status to Approved in a separate commit and we will be able to merge it |
Signed-off-by: everettraven <[email protected]>
@joaopapereira should be done now in 1d187a5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved after discussion in Community Meeting and Lazy consensus vote
No description provided.