kubernetes-sigs / kubernetes-sigs/crdify

Property Validation: `pattern`

Open
#21 2 comments 0 reactions 1 assignee Claimed by @LoginovIlia View on GitHub
good first issue help wanted kind/feature priority/important-longterm triage/accepted
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.