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

Remove runAsUser in helm template for windows node #663

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

pmcenery-bl
Copy link
Contributor

Issue #595

Description of changes:

Remove runAsUser from securityContext map on Windows daemonset.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@pmcenery-bl pmcenery-bl requested a review from a team as a code owner July 26, 2022 14:23
Copy link
Contributor

@snay2 snay2 left a comment

Choose a reason for hiding this comment

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

I ran the following commands to check that this syntax is correct:

cd config/helm
sed -i '' 's/^targetNodeOs: .*$/targetNodeOs: windows/' aws-node-termination-handler/values.yaml
helm template aws-node-termination-handler -f aws-node-termination-handler/values.yaml

Then verified that spec.template.spec.containers[0].securityContext inside the output for daemonset.windows.yaml contains all the values of securityContext from values.yaml except runAsUser:

          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            runAsGroup: 1000
            runAsNonRoot: true

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