diff --git a/install/kubernetes/github-actions-cache-server/templates/deployment.yaml b/install/kubernetes/github-actions-cache-server/templates/deployment.yaml index 2e4862c..de2c0e7 100644 --- a/install/kubernetes/github-actions-cache-server/templates/deployment.yaml +++ b/install/kubernetes/github-actions-cache-server/templates/deployment.yaml @@ -36,6 +36,10 @@ spec: serviceAccountName: {{ include "github-actions-cache-server.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- with .Values.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: @@ -67,6 +71,9 @@ spec: {{- with .Values.env }} {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.sidecars }} + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: tmp {{- toYaml .Values.tmpVolume | nindent 10 }} diff --git a/install/kubernetes/github-actions-cache-server/values.yaml b/install/kubernetes/github-actions-cache-server/values.yaml index e2c0af0..acc45f8 100644 --- a/install/kubernetes/github-actions-cache-server/values.yaml +++ b/install/kubernetes/github-actions-cache-server/values.yaml @@ -128,3 +128,10 @@ apiBaseUrl: '' env: - name: DEBUG value: 'false' + +# Additional containers to run as sidecars alongside the main cache server container +sidecars: [] + +# Init containers to run before the main cache server container starts +initContainers: [] +