-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add validator for the description of a property #7
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
feat: add validator for the description of a property #7
Conversation
Currently, validation fails if the description of a property is changed in any way. The description validator ensures that it is possible to change the description of a property without failing validation.
|
I'm a bit skeptical about adding a validator for this property. I think it is likely that the failure you are seeing here is related to the Maybe it makes sense to have the If I were to accept a validator for this property, I would expect it to not default to it being a breaking change. |
Yes, the description gets currently handled by the Default Validator. |
I like the idea of a white list for property changes, but that does make the project less opinionated as a whole which I think should start to be avoided. For now, lets go with a validator that:
As I've been iterating on kubernetes/enhancements#5102 I've started leaning towards validators being less configurable and more opinionated. This is a pretty significant shift from how I initially implemented the validators but i think is the right direction to start going. |
|
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-contributor-experience at kubernetes/community. /check-cla |
|
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
superseded by #16 |
Currently, validation fails if the description of a property is changed in any way. The description validator ensures that it is possible to change the description of a property without failing validation.