kiwigrid / helm-charts

Helm charts for Kubernetes curated by Kiwigrid
https://kiwigrid.github.io
MIT License
186 stars 209 forks source link

Retry for PR with signed commits! #418

Closed funkypenguin closed 3 years ago

funkypenguin commented 3 years ago

What this PR does / why we need it:

(this is a retry of https://github.com/kiwigrid/helm-charts/pull/417, since I couldn't get signed commits to work with the a rebase, due to my n00bness)

Adds optional support to the secret-replicator chart for:

  1. Passing the SECRET_NAMESPACE env var
  2. Setting the pod securityContext
  3. Setting the container securityContext

Why do we need this?

Firstly, in our deployment, we want to isolate secret-replicator from the secrets which it generates.

Secondly, setting securityContexts allows "locking-down" the pod in sense of disabling privileged mode, enforcing readOnlyRootFilesystem (only at the container level).

All the changes I've prosposed are opt-in, and I've updated the README accordingly.

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]