New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for SELinuxMount feature #123554
Conversation
Previously, SELinuxMount started two pods and in laboratory conditions waited for the second Pod to get stuck (because of RWOP) and observed kubelet behavor after the test unstuck them (i.e. deleted the first Pod). When testing RWO volumes, the second Pod may not get stuck, it may actually run. So update the tests to allow the second Pod to run and start counting CSI calls for it earlier.
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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/test-infra repository. |
/test pull-kubernetes-e2e-gce-storage-slow |
/retest |
e2e-gce-* should be already fixed by kubernetes/test-infra#32094 |
Use all necessary feature gates in SELinuxMount tests.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: a6bbf1addb4edcd5d05a9b73c5e33d09534e9283
|
@jsafrane: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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/test-infra repository. I understand the commands that are listed here. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add tests for SELinuxMount feature.
Since there are two semi-independent feature gates
SELinuxMountReadWriteOncePod
andSELinuxMount
, there are three classes of tests:[FeatureGate:SELinuxMountReadWriteOncePod]
: requiresSELinuxMountReadWriteOncePod
feature gate to be enabled andSELinuxMount
to be either disabled or enabled (unless[Feature:SELinuxMountReadWriteOncePodOnly]
is specified, see below).[FeatureGate:SELinuxMountReadWriteOncePod, Feature:SELinuxMountReadWriteOncePodOnly]
requireSELinuxMountReadWriteOncePod
enabled andSELinuxMount
disabled. These tests ensure that appropriate warning metrics are increased when the feature is limited to RWOP volumes.[FeatureGate:SELinuxMountReadWriteOncePod, FeatureGate:SELinuxMount]
require bothSELinuxMountReadWriteOncePodOnly
andSELinuxMount
enabled.Special notes for your reviewer:
[Feature:SELinuxMountReadWriteOncePod]
tag in favor of feature-gate specific[FeatureGate:SELinuxMountReadWriteOncePod]
.Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: