diff --git a/charts/atlantis/Chart.yaml b/charts/atlantis/Chart.yaml index 57d17ce6..1512d267 100644 --- a/charts/atlantis/Chart.yaml +++ b/charts/atlantis/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v1 appVersion: v0.27.2 description: A Helm chart for Atlantis https://www.runatlantis.io name: atlantis -version: 4.24.1 +version: 4.25.1 keywords: - terraform home: https://www.runatlantis.io diff --git a/charts/atlantis/README.md b/charts/atlantis/README.md index f39dd63f..c657823b 100644 --- a/charts/atlantis/README.md +++ b/charts/atlantis/README.md @@ -134,6 +134,7 @@ extraManifests: | initConfig.image | string | `"alpine:latest"` | | | initConfig.imagePullPolicy | string | `"IfNotPresent"` | | | initConfig.script | string | Check values.yaml. | Script to run on the init container. | +| initConfig.securityContext | object | `{}` | Security context for the container. | | initConfig.sharedDir | string | `"/plugins"` | SharedDir is set as env var INIT_SHARED_DIR. | | initConfig.sizeLimit | string | `"100Mi"` | Size for the shared volume. | | initConfig.workDir | string | `"/tmp"` | | diff --git a/charts/atlantis/values.schema.json b/charts/atlantis/values.schema.json index 172bcc7f..73ae7d7b 100644 --- a/charts/atlantis/values.schema.json +++ b/charts/atlantis/values.schema.json @@ -1001,6 +1001,11 @@ "type": "string", "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images" }, + "containerSecurityContext": { + "type": "object", + "description": "SecurityContext configuration for the initConfig container.", + "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext" + }, "sharedDir": { "type": "string", "description": "sharedDir is set as env var INIT_SHARED_DIR" diff --git a/charts/atlantis/values.yaml b/charts/atlantis/values.yaml index 74044a7a..7923796c 100644 --- a/charts/atlantis/values.yaml +++ b/charts/atlantis/values.yaml @@ -567,6 +567,8 @@ initConfig: workDir: /tmp # -- Size for the shared volume. sizeLimit: 100Mi + # -- Security context for the container. + securityContext: {} # -- Script to run on the init container. # @default -- Check values.yaml. script: |