Repository navigation
ci: run CRD admission tests on a KinD cluster - #7
Merged
colinjlacy merged 1 commit intoDec 1, 2026
Merged
Conversation
Add an E2E workflow that creates a KinD cluster and runs tests/test_crd_admission.py on push and pull requests.
antdelojpe
force-pushed
the
ci/e2e-crd-admission
branch
from
December 1, 2026 03:18
3162ba1 to
4f91ec8
Compare
Contributor
Author
Test evidence
Output (16 cases)Notably, this verifies against a live apiserver that duplicate condition names are rejected, which #2 said had not been checked yet. |
colinjlacy
approved these changes
Dec 1, 2026
colinjlacy
left a comment
Member
There was a problem hiding this comment.
NICELY DONE! Much needed, and I'm sure we'll reuse this approach for future builds as we add more CRDs. Muito obrigado!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2
Summary
Adds an
E2EGitHub Actions workflow that runs the existingtests/test_crd_admission.pyagainst a live apiserver on every push and pull request.The test already exercises the CRD's OpenAPI/CEL validation (required fields, extension URI rules and uniqueness, condition-name uniqueness, size limits), but no CI job ran it.
test.ymlonly runsmake test.Changes
.github/workflows/e2e.yml:helm/kind-action(v1.15.2, pinned by SHA)python3 tests/test_crd_admission.pypermissions: {}at the top level andcontents: readon the job,persist-credentials: false.Verification
tests/test_crd_admission.pylocally on a KinD cluster: all 16 cases pass.