CMP-4475: Install OpenShift Virtualization operator for OCP-Virt e2e#78
Draft
Vincent056 wants to merge 1 commit into
Draft
CMP-4475: Install OpenShift Virtualization operator for OCP-Virt e2e#78Vincent056 wants to merge 1 commit into
Vincent056 wants to merge 1 commit into
Conversation
Add an optional setup step that installs the OpenShift Virtualization (CNV) operator and creates the HyperConverged CR before the tests run, so the CIS OpenShift Virtualization profiles can be scanned on a cluster that does not already have CNV. Gated by the new -install-virt flag (default false) and idempotent if CNV is already present. Also adds an -install-virt and -cel-content-file config plumbing; wiring the CEL ProfileBundle (spec.celContentFile) is marked as a follow-up TODO pending a bump of the vendored compliance-operator API to >= v1.9.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
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.
What (draft)
First step toward an e2e suite for the CIS OpenShift Virtualization profiles.
installVirtualizationOperator(helpers/virtualization.go): creates theopenshift-cnvnamespace, an OperatorGroup, a Subscription forkubevirt-hyperconverged, waits for the HyperConverged API, creates theHyperConvergedCR, and waits until it isAvailable. Idempotent; leaves existing CNV in place.-install-virtflag (default false) gates it — existing runs are unchanged.helpers/Setupafter the operator install, before profile-bundle setup.-cel-content-fileplumbing for the CEL ProfileBundle.Still TODO on this ticket (draft)
-cel-content-fileinto the ocp4 ProfileBundlespec.celContentFile— requires bumping the vendoredComplianceAsCode/compliance-operatorAPI to ≥ v1.9.0 (the release that addedCELContentFile). Marked with aTODO(CMP-4475)inhelpers/utilities.go.cis-vm-extensionprofile.Testing
Compiles and
gofmtclean. End-to-end run pending a CNV-capable test cluster; the CNV install path will be validated once a cluster is available.Jira: https://issues.redhat.com/browse/CMP-4475
🤖 Generated with Claude Code