This adds support for semantic version comparison to the CEL support in the "named resources" structured parameter model. For example, it can be used to check that an instance supports a certain API level. To minimize the risk, the new "semver" type is only defined in the CEL environment for DRA expressions, not in the base library. See https://github.com/kubernetes/kubernetes/pull/123664 for a PR which adds it to the base library. Validation of semver strings is done with the regular expression from semver.org. The actual evaluation at runtime then uses semver/v4. |
||
|---|---|---|
| .. | ||
| fuzzer | ||
| install | ||
| structured/namedresources/validation | ||
| v1alpha2 | ||
| validation | ||
| OWNERS | ||
| doc.go | ||
| namedresources.go | ||
| register.go | ||
| types.go | ||
| zz_generated.deepcopy.go | ||