Skip to content

CMP-4341: move kubelet rule filepath to /tmp/runtime/openscap-kubeletconfig#14822

Open
Vincent056 wants to merge 1 commit into
ComplianceAsCode:masterfrom
Vincent056:cmp-4341-kubeletconfig-tmppath
Open

CMP-4341: move kubelet rule filepath to /tmp/runtime/openscap-kubeletconfig#14822
Vincent056 wants to merge 1 commit into
ComplianceAsCode:masterfrom
Vincent056:cmp-4341-kubeletconfig-tmppath

Conversation

@Vincent056

Copy link
Copy Markdown
Contributor

The compliance-operator delivers the runtime kubeletconfig to the scanner via a shared emptyDir mounted at /host/tmp/runtime (mirroring the runtime SSH config), instead of a host symlink under /var/run.

A volume mountpoint cannot be created under the read-only host /var/run, and the previous host ln -s was non-idempotent and failed Read-only file system on re-scans. This moves the kubelet yamlfile_value checks to read the config from the new path.

Updates the filepath in all 24 kubelet rules from /var/run/compliance-operator/kubeletconfig/openscap-kubeletconfig to /tmp/runtime/openscap-kubeletconfig.

Pairs with compliance-operator PR ComplianceAsCode/compliance-operator#1255 (must merge together — the operator writes the new path, content reads it).

CMP-4341

The compliance-operator delivers the runtime kubeletconfig to the scanner via a
shared emptyDir mounted at /host/tmp/runtime (mirroring the runtime SSH config),
instead of a host symlink under /var/run. A volume mountpoint cannot be created
under the read-only host /var/run, and the previous "ln -s" was non-idempotent
and failed "Read-only file system" on re-scans. Point the kubelet yamlfile_value
checks at the new path.

Pairs with compliance-operator change "Deliver runtime kubeletconfig via shared
emptyDir instead of a host symlink".

CMP-4341
@openshift-ci

openshift-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown

@Vincent056: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-node-compliance 82fc125 link true /test e2e-aws-openshift-node-compliance
ci/prow/e2e-aws-openshift-platform-compliance 82fc125 link true /test e2e-aws-openshift-platform-compliance

Full PR test history. Your PR dashboard.

Details

Instructions 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant