-
Notifications
You must be signed in to change notification settings - Fork 295
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 explicit securityContexts to the controller #1868
🌱 add explicit securityContexts to the controller #1868
Conversation
This does not really change the configuration, it just makes it explicit and enforce the defaults, except for the seccompPolicy which changes from Unconfined to RuntimeDefault. Syscalls filtered by RuntimeDefault policy are 95% namespaced and require capabilities (which we drop) in the first place, so no practical change there either. This allows to be compatible to the restricted pod security admission profile. This is a recommendation in the CAPI v1.3->1.4 upgrade guide.
@chrischdi: 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. |
I don't know why this creates a diff for the CRD's 🤔 must be an unrelated change. |
The |
@chrischdi to understand more about this one, does it mean that the latest version of the CAPV might not work with previous CAPI version, say v1.3.x post this change? |
When this would get merged, running capv with tilt requires this change: kubernetes-sigs/cluster-api#7846 Generally: running with capi v1.3 is no issue at all, just when capv gets run with tilt :-) |
Ping @srm09 :-) if you find some time |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: srm09 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 |
What this PR does / why we need it:
This does not really change the configuration, it just makes it explicit and enforce the defaults, except for the seccompPolicy which changes from Unconfined to RuntimeDefault. Syscalls filtered by RuntimeDefault policy are 95% namespaced and require capabilities (which we drop) in the first place, so no practical change there either.
This allows to be compatible to the restricted pod security admission profile.
This is a recommendation in the CAPI v1.3->1.4 upgrade guide.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Prior art:
Note: this requires the v1.4 branch of CAPI for usage with tilt, because the Tiltfile then removes the securityContext for allowing it to succeed.
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: