diff --git a/helm/Chart.yaml b/helm/Chart.yaml index d8e0a92d..9e4109ad 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: stac-auth-proxy description: A Helm chart for stac-auth-proxy type: application -version: 0.1.0 -appVersion: "1.0.0" \ No newline at end of file +version: 0.1.1 +appVersion: "1.0.0" diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index ce3c3f53..92d514fd 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -17,6 +17,10 @@ spec: serviceAccountName: {{ include "stac-auth-proxy.serviceAccountName" . }} securityContext: {{- toYaml .Values.securityContext | nindent 8 }} + {{- with .Values.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: diff --git a/helm/values.schema.yaml b/helm/values.schema.yaml index 34d026e6..9df052a3 100644 --- a/helm/values.schema.yaml +++ b/helm/values.schema.yaml @@ -229,6 +229,13 @@ properties: additionalProperties: true description: "Pod affinity rules" + initContainers: + type: array + items: + type: object + additionalProperties: true + description: "Init containers to run before the main container starts" + serviceAccount: type: object properties: diff --git a/helm/values.yaml b/helm/values.yaml index 76e00d4e..e791e0d2 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -46,6 +46,14 @@ nodeSelector: {} tolerations: [] affinity: {} +# Init containers to run before the main container starts +# initContainers: [] +# Example: +# initContainers: +# - name: wait-for-oidc +# image: busybox:1.35 +# command: ['sh', '-c', 'until nc -z oidc-server 8080; do sleep 2; done'] + # Environment variables for the application env: # Required configuration