-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add securityContext & disable hostNetwork in cronjob helm template #33077
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
Conversation
Commit 16c1d34 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
16c1d34
to
18969aa
Compare
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.
Seems reasonable. I don't see any reasons that we need hostNetworking or extra privileges.
install/kubernetes/cilium/templates/hubble/tls-cronjob/_job-spec.tpl
Outdated
Show resolved
Hide resolved
/test |
8896a52
to
b84059f
Compare
/test |
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.
The agent already can start without hubble certificates, which breaks the chicken-and-egg problem, so hostNetwork: false is not a problem here. Nice!
Commit 9e4ff99 does not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
I updated the branch with github UI, but not sure how to add the signoff there, may worth to ignore |
You need to do this locally and amend your commit with the sign-off. |
Commits 9e4ff99, 91b0e28 do not match "(?m)^Signed-off-by:". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Head branch was pushed to by a user without write access
See cilium#33077 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
@@ -9,10 +9,22 @@ spec: | |||
{{- toYaml . | nindent 8 }} | |||
{{- end }} | |||
spec: | |||
securityContext: | |||
{{- if semverCompare "<1.30.0" (printf "%d.%d.0" (semver .Capabilities.KubeVersion.Version).Major (semver .Capabilities.KubeVersion.Version).Minor) }} |
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.
The condition is reversed. See #34100.
See cilium#33077 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
The condition is reversed, and fixing it breaks CI. See cilium#33077 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
The condition is reversed, and fixing it breaks CI. See cilium#33077 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
The condition is reversed, and fixing it breaks CI. See #33077 Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Fixes: <commit-id>
tag, thenplease add the commit author[s] as reviewer[s] to this issue.
Add securityContext and disable hostNetwork for cronjob helm template to follow best security practice.
Fixes: N/A