Skip to content
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

Selinux Mount Option #2253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ConnorJC3
Copy link
Contributor

@ConnorJC3 ConnorJC3 commented Dec 4, 2024

What type of PR is this?

/kind feature

What is this PR about? / Why do we need it?

Adds a new helm parameter, node.selinux, that mounts the relevant directories to allow the selinux-aware mount binary to perform selinux-specific optimizations. (This parameter can also be used in the future for any other selinux optimizations on the node).

This must be a parameter that is default-disabled, because /sys/fs/selinux will not exist unless SELinux is actually enabled on the nodes.

How was this change tested?

CI/Manually

Does this PR introduce a user-facing change?

Add Helm parameter `node.selinux` to enable SELinux-specific mounts on the node DaemonSet

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. labels Dec 4, 2024
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 4, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from connorjc3. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from torredil December 4, 2024 14:54
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

Code Coverage Diff

This PR does not change the code coverage

@ConnorJC3
Copy link
Contributor Author

ConnorJC3 commented Dec 4, 2024

flake (kops failed to create cluster)

/retest

@ConnorJC3
Copy link
Contributor Author

/retest

lots of flakes today

@ConnorJC3 ConnorJC3 changed the title [WIP] Selinux Mounts Selinux Mount Option Dec 19, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 19, 2024
Signed-off-by: Connor Catlett <conncatl@amazon.com>
@torredil
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 19, 2024
@@ -342,6 +342,9 @@ controller:
# Enable dnsConfig for the controller and node pods
dnsConfig: {}
node:
# Enable SELinux-only optimizations on the EBS CSI Driver node pods
# Must only be set true if all linux nodes in the DaemonSet have SELinux enabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking comment: Do we want to recommend additional daemonsets feature in-line here.

An extra sentence like: "Please rely on additional daemonsets feature if this is not the case."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants