Skip to content

Commit

Permalink
additional volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed May 28, 2024
1 parent dc535b1 commit 54cb97b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charts/odrl-pap/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/odrl-pap/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 54cb97b

Please sign in to comment.