diff --git a/charts/odrl-pap/templates/deployment.yaml b/charts/odrl-pap/templates/deployment.yaml index 8a28ce0..181dfdf 100644 --- a/charts/odrl-pap/templates/deployment.yaml +++ b/charts/odrl-pap/templates/deployment.yaml @@ -36,6 +36,12 @@ spec: {{- end }} spec: serviceAccountName: {{ include "pap.serviceAccountName" . }} + {{- if .Values.deployment.initContainers }} + initContainers: + {{- with .Values.deployment.initContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} containers: - name: {{ .Chart.Name }} imagePullPolicy: {{ .Values.deployment.image.pullPolicy }} @@ -107,6 +113,10 @@ spec: - name: rego mountPath: /rego-packages {{- end }} + {{- if .Values.deployment.additionalVolumeMounts }} + {{- with .Values.deployment.additionalVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} resources: {{- toYaml .Values.deployment.resources | nindent 12 }} volumes: @@ -120,6 +130,11 @@ spec: configMap: name: {{ include "pap.fullname" . }}-rego {{- end }} + {{- if .Values.deployment.additionalVolumes }} + {{- with .Values.deployment.additionalVolumes }} + {{- toYaml . | nindent 6 }} + {{- end }} + {{- end }} {{- with .Values.deployment.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/odrl-pap/values.yaml b/charts/odrl-pap/values.yaml index 61f7889..345d255 100644 --- a/charts/odrl-pap/values.yaml +++ b/charts/odrl-pap/values.yaml @@ -55,6 +55,10 @@ deployment: additionalLabels: {} # -- additional annotations for the deployment, if required additionalAnnotations: {} + # -- additional volume mounts + additionalVolumeMounts: {} + # -- additional volumes to be added for the containers + additionalVolumes: {} ## pap resource requests and limits, we leave the default empty to make that a concious choice by the user. ## for the autoscaling to make sense, you should configure this. # resources: