OctopusDeploy / helm-charts

Helm chart for deploying Octopus Deploy into a Kubernetes cluster
Apache License 2.0
11 stars 4 forks source link

Add support for setting pods securityContext #258

Closed APErebus closed 3 months ago

APErebus commented 3 months ago

Customers have asked if we can run the tentacle application in the container as a non-root user.

This PR adds the ability to set the securityContext field on the tentacle pod and script pods via agent.securityContext and scriptPods.securityContext fields

Shortcut story: [sc-87998]

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 72070883728c1bc1a1efbf49d9d0cd58519fd563

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------- | ----- | | kubernetes-agent | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

APErebus commented 3 months ago

LGTM, though we may want to consider adding a test for OCTOPUS__K8STENTACLE__PODSECURITYCONTEXTJSON being set correctly as well.

Added in in 12bcfb0