-
Notifications
You must be signed in to change notification settings - Fork 808
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
Allow driver node daemonSet annotations to be configurable #1923
Allow driver node daemonSet annotations to be configurable #1923
Conversation
Code Coverage DiffThis PR does not change the code coverage |
I thought about adding a customAnnotations that would be shared across ebs csi driver resources like the existing |
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.
This PR lgtm, tested with the following values.yaml:
controller:
deploymentAnnotations:
ignore-check.kube-linter.io/unset-cpu-requirements: ""
node:
daemonsetAnnotations:
ignore-check.kube-linter.io/privileged-container: ""
ignore-check.kube-linter.io/unset-cpu-requirements: ""
ignore-check.kube-linter.io/run-as-non-root: ""
ignore-check.kube-linter.io/sensitive-host-mounts: ""
ignore-check.kube-linter.io/privilege-escalation-container: ""
Do note that 6 lint errors remain, coming from the
We should strive to expose a minimal set of necessary parameters and avoid overloading values.yaml. There is no need to expose annotations for that pod, but to fully address #1918 we should resolve the remaining lint errors. |
As previously mentioned, this PR lgtm. For clarity, the previous comment is specifically referring to addressing kube-linter errors for |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ConnorJC3 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 |
Is this a bug fix or adding new feature?
helm feature
What is this PR about? / Why do we need it?
Closes #1918
"Running static analysis tools like KubeLinter against the chart fails due to pods (specifically ebs-plugin node.containerSecurityContext) allowing a container to run in privilege mode.
These can be ignored via annotations to the resource (not the pod but the daemonset) but currently there are no means to provide them."
What testing is done?
CI
Manually testing the following values file:
Result:
Proof in live cluster: