diff --git a/src/helm/find/Chart.yaml b/src/helm/find/Chart.yaml index 6e25db6..4a5e56e 100644 --- a/src/helm/find/Chart.yaml +++ b/src/helm/find/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v2 type: application name: find -version: 0.0.2 +version: 0.0.3 diff --git a/src/helm/find/README.md b/src/helm/find/README.md index 08d3f0a..c519bcf 100644 --- a/src/helm/find/README.md +++ b/src/helm/find/README.md @@ -43,6 +43,7 @@ | `backend.shareProcessNamespace` | Enable share process namespace between containers | `false` | | `backend.sidecars` | Add sidecars containers to backend deployment | `[]` | | `backend.migrateJobAnnotations` | Annotations for the migrate job | `{}` | +| `backend.podSecurityContext` | Configure backend Pod security context | `nil` | | `backend.securityContext` | Configure backend Pod security context | `nil` | | `backend.envVars` | Configure backend container environment variables | `undefined` | | `backend.envVars.BY_VALUE` | Example environment variable by setting value directly | | @@ -58,15 +59,15 @@ | `backend.migrate.command` | backend migrate command | `["python","manage.py","migrate","--no-input"]` | | `backend.migrate.restartPolicy` | backend migrate job restart policy | `Never` | | `backend.probes.liveness.path` | Configure path for backend HTTP liveness probe | `/__heartbeat__` | -| `backend.probes.liveness.targetPort` | Configure port for backend HTTP liveness probe | `undefined` | +| `backend.probes.liveness.targetPort` | Configure port for backend HTTP liveness probe | `nil` | | `backend.probes.liveness.initialDelaySeconds` | Configure initial delay for backend liveness probe | `10` | | `backend.probes.liveness.initialDelaySeconds` | Configure timeout for backend liveness probe | `10` | -| `backend.probes.startup.path` | Configure path for backend HTTP startup probe | `undefined` | -| `backend.probes.startup.targetPort` | Configure port for backend HTTP startup probe | `undefined` | -| `backend.probes.startup.initialDelaySeconds` | Configure initial delay for backend startup probe | `undefined` | -| `backend.probes.startup.initialDelaySeconds` | Configure timeout for backend startup probe | `undefined` | +| `backend.probes.startup.path` | Configure path for backend HTTP startup probe | `nil` | +| `backend.probes.startup.targetPort` | Configure port for backend HTTP startup probe | `nil` | +| `backend.probes.startup.initialDelaySeconds` | Configure initial delay for backend startup probe | `nil` | +| `backend.probes.startup.initialDelaySeconds` | Configure timeout for backend startup probe | `nil` | | `backend.probes.readiness.path` | Configure path for backend HTTP readiness probe | `/__lbheartbeat__` | -| `backend.probes.readiness.targetPort` | Configure port for backend HTTP readiness probe | `undefined` | +| `backend.probes.readiness.targetPort` | Configure port for backend HTTP readiness probe | `nil` | | `backend.probes.readiness.initialDelaySeconds` | Configure initial delay for backend readiness probe | `10` | | `backend.probes.readiness.initialDelaySeconds` | Configure timeout for backend readiness probe | `10` | | `backend.resources` | Resource requirements for the backend container | `{}` | diff --git a/src/helm/find/generate-readme.sh b/src/helm/find/generate-readme.sh index edbd280..bc1cca2 100755 --- a/src/helm/find/generate-readme.sh +++ b/src/helm/find/generate-readme.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash docker image ls | grep readme-generator-for-helm if [ "$?" -ne "0" ]; then diff --git a/src/helm/find/templates/backend_deployment.yaml b/src/helm/find/templates/backend_deployment.yaml index dac5218..ea4b373 100644 --- a/src/helm/find/templates/backend_deployment.yaml +++ b/src/helm/find/templates/backend_deployment.yaml @@ -90,6 +90,10 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.backend.podSecurityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.backend.affinity }} affinity: {{- toYaml . | nindent 8 }} diff --git a/src/helm/find/templates/backend_job.yaml b/src/helm/find/templates/backend_job.yaml index 9f46b65..cffe7ed 100644 --- a/src/helm/find/templates/backend_job.yaml +++ b/src/helm/find/templates/backend_job.yaml @@ -75,6 +75,10 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.backend.podSecurityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.backend.affinity }} affinity: {{- toYaml . | nindent 8 }} diff --git a/src/helm/find/templates/backend_job_createsuperuser.yaml b/src/helm/find/templates/backend_job_createsuperuser.yaml index 4e0a0b2..1f593eb 100644 --- a/src/helm/find/templates/backend_job_createsuperuser.yaml +++ b/src/helm/find/templates/backend_job_createsuperuser.yaml @@ -76,6 +76,10 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.backend.podSecurityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.backend.affinity }} affinity: {{- toYaml . | nindent 8 }} diff --git a/src/helm/find/values.yaml b/src/helm/find/values.yaml index 5c358f3..67bd04d 100644 --- a/src/helm/find/values.yaml +++ b/src/helm/find/values.yaml @@ -92,6 +92,9 @@ backend: ## @param backend.migrateJobAnnotations Annotations for the migrate job migrateJobAnnotations: {} + ## @param backend.podSecurityContext Configure backend Pod security context + podSecurityContext: null + ## @param backend.securityContext Configure backend Pod security context securityContext: null