Platform spec cel unit test#10676
Conversation
Vendored dependencies for the new tests/crd module which validates kubebuilder markers in the generated CRD schema. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…th CEL Adds a generic CRD validation test module (tests/crd/) that verifies kubebuilder markers are correctly reflected in the generated CRD schema and behaviorally tests CEL rules via envtest. vSphere is the first consumer with 35 schema tests and 15 behavioral CEL tests. Replaces dual Format=ipv4/Format=ipv6 markers on NetworkDeviceSpec fields (gateway, ipAddrs, nameservers) with CEL XValidation rules, since only the last Format marker was taking effect. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/test unit |
|
@jcpowermac: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Adds a generic CRD validation test module (tests/crd/) that verifies
kubebuilder markers are correctly reflected in the generated CRD schema
and behaviorally tests CEL rules via envtest. vSphere is the first
consumer with 35 schema tests and 15 behavioral CEL tests.
Replaces dual Format=ipv4/Format=ipv6 markers on NetworkDeviceSpec
fields (gateway, ipAddrs, nameservers) with CEL XValidation rules,
since only the last Format marker was taking effect.