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

Add SELinux options for Bottlerocket #155

Merged
merged 3 commits into from
Feb 27, 2024
Merged

Conversation

jjkr
Copy link
Contributor

@jjkr jjkr commented Feb 26, 2024

Issue #, if available: #86

Description of changes: Add support for Bottlerocket OS. New versions of Bottlerocket are adding SELinux policies and directories to support installing the CSI driver and this PR adds SELinux labels to the containers to work with these changes. The install and node driver containers must run with the super_t SELinux user. The Bottlerocket policies are configured such that the installed files will automatically get the correct labels applied, so it turns out there is no relabeling required.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dlakhaws
Copy link
Contributor

Is there any specific example we can provide to customers in our examples directory?

{{- with .Values.node.seLinuxOptions }}
securityContext:
seLinuxOptions:
user: {{ .user }}
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion to add default values to these

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are default values set in values.yaml

@jjkr
Copy link
Contributor Author

jjkr commented Feb 27, 2024

Is there any specific example we can provide to customers in our examples directory?

As implemented, this will just work on newer Bottlerocket with no modifications. Once Bottlerocket cuts their release I will have to add them to the supported os matrix.

@jjkr jjkr merged commit 8d574fe into main Feb 27, 2024
7 checks passed
@jjkr jjkr deleted the jk-bottlerocket-integration branch February 27, 2024 22:19
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.

2 participants