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

[alertmanager] Add securityContext to configmap reload #3659

Conversation

robertlindner
Copy link
Contributor

What this PR does / why we need it

When adding the sidecar container via helm values, our policies complain about the container not having security context set.
This sets the securityContext of the configmap reloader to the same values as the main container, to prevent it from running as root.

Which issue this PR fixes

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@robertlindner robertlindner force-pushed the feature/Add_Security_context_to_config_reload branch 2 times, most recently from 752ff67 to 948783a Compare August 4, 2023 12:53
@robertlindner robertlindner force-pushed the feature/Add_Security_context_to_config_reload branch from fd54d6f to e50315f Compare August 7, 2023 12:02
@robertlindner robertlindner force-pushed the feature/Add_Security_context_to_config_reload branch from e50315f to 4fec72a Compare August 8, 2023 07:45
Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

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

to be consistent with the previous behavior

Signed-off-by: Robert Lindner <[email protected]>
@robertlindner robertlindner force-pushed the feature/Add_Security_context_to_config_reload branch from 4fec72a to baa96f7 Compare August 8, 2023 08:17
@monotek monotek merged commit 56c421f into prometheus-community:main Aug 14, 2023
4 checks passed
Matiasmct pushed a commit to giffgaff/prometheus-charts-backup that referenced this pull request Aug 25, 2023
…mmunity#3659)

* Add securityContext to configmap reload

Signed-off-by: Robert Lindner <[email protected]>

* Configure configmapReload securityContext via seperate values

Signed-off-by: Robert Lindner <[email protected]>

* Default the securityContext for configmapReload to empty object

to be consistent with the previous behavior

Signed-off-by: Robert Lindner <[email protected]>

---------

Signed-off-by: Robert Lindner <[email protected]>
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