kubernetes-sigs / kubernetes-sigs/crdify
Property Validation: `pattern`
- Dominant language
- Go
- Stars
- 47
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
The `pattern` constraint on a property puts a restriction on the value of a property based on a regular expression.
It is non-trivial to determine whether or not a change to a regular expression is more/less restrictive via code, but generally we should at the very least flag changes to the `pattern` constraint so that a human-in-the-loop can evaluate and determine whether or not the change is safe to make.
More nuanced:
- Adding a pattern when one did not previously exist _is_ a breaking change.
- Changing a pattern _could_ be a breaking change.
- Removing a pattern is less restrictive and likely an OK change to make.
Contributor guide
Assessment
This issue has not been assessed yet.