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

fix for selinux to make it work in openshift 4.X #104

Closed
wants to merge 1 commit into from

Conversation

bortek
Copy link

@bortek bortek commented May 12, 2023

tested in openshift 4.11.37

Copy link

@erikgb erikgb left a comment

Choose a reason for hiding this comment

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

I would prefer if this was fixed inside the CSI driver, and consider the init container to be a workaround.

@@ -80,6 +80,21 @@ spec:
# directory
- name: kubelet-plugin-registration-dir
mountPath: /registration
initContainers:
- name: set-context
image: ubuntu:22.04
Copy link

Choose a reason for hiding this comment

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

We should probably consider a more lightweight image. https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d could be an option that is quite small and contains chcon.

@azdagron
Copy link
Member

Thanks for opening this @bortek, I think we're going to go with a different direction and have the CSI driver set the label itself (see #105 )

@azdagron azdagron closed this May 14, 2023
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.

3 participants