diff --git a/Chart.yaml b/Chart.yaml index 8f7b318..af923f5 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: retool description: A Helm chart for Kubernetes type: application -version: 4.8.0 +version: 4.9.0 maintainers: - name: Retool Engineering email: engineering+helm@retool.com diff --git a/templates/deployment_backend.yaml b/templates/deployment_backend.yaml index 66d8b1b..c002357 100644 --- a/templates/deployment_backend.yaml +++ b/templates/deployment_backend.yaml @@ -185,6 +185,9 @@ spec: - name: {{ .name }} mountPath: {{ .mountPath }} subPath: {{ .subPath }} +{{- end }} +{{- if .Values.extraSidecarContainers.enabled }} +{{ toYaml .Values.extraSidecarContainers.containers | indent 6 }} {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: diff --git a/templates/deployment_jobs.yaml b/templates/deployment_jobs.yaml index 26b4202..2a9f19a 100644 --- a/templates/deployment_jobs.yaml +++ b/templates/deployment_jobs.yaml @@ -41,6 +41,9 @@ spec: {{- end }} {{- end }} containers: +{{- if .Values.extraSidecarContainers.enabled }} +{{ toYaml .Values.extraSidecarContainers.containers | indent 6 }} +{{- end }} - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/values.yaml b/values.yaml index c18388d..d33bd86 100644 --- a/values.yaml +++ b/values.yaml @@ -236,6 +236,32 @@ extraManifests: [] # securityPolicy: # name: "my-gcp-cloud-armor-policy" +extraSidecarContainers: + enabled: false + containers: [] + # containers: + # - name: mySidecarContainer + # image: "resourceAddress:version" + # imagePullPolicy: IfNotPresent + # resources: + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + # env: + # - name: POD_NAME + # valueFrom: + # fieldRef: + # apiVersion: v1 + # fieldPath: metadata.name + # - name: POD_NAMESPACE + # valueFrom: + # fieldRef: + # apiVersion: v1 + # fieldPath: metadata.namespace + # Support for AWS Security groups for pods # Ref: https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html securityGroupPolicy: