Skip to content

Commit

Permalink
allow extraVolumes and extraVolumeMounts on core
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Martins authored and Manuel Martins committed Mar 24, 2021
1 parent 903cab0 commit e3eb862
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/core/core-dpl.yaml
Expand Up @@ -124,6 +124,9 @@ spec:
{{- if .Values.caBundleSecretName }}
{{ include "harbor.caBundleVolumeMount" . | indent 8 }}
{{- end }}
{{- with .Values.core.extraVolumeMounts }}
{{ tpl (. | toYaml) $ | indent 8 }}
{{- end }}
{{- if .Values.core.resources }}
resources:
{{ toYaml .Values.core.resources | indent 10 }}
Expand Down Expand Up @@ -177,6 +180,9 @@ spec:
{{- if .Values.caBundleSecretName }}
{{ include "harbor.caBundleVolume" . | indent 6 }}
{{- end }}
{{- with .Values.core.extraVolumes }}
{{ tpl (. | toYaml) $ | indent 6 }}
{{- end }}
{{- with .Values.core.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions values.yaml
Expand Up @@ -434,6 +434,16 @@ core:
secretName: ""
# The XSRF key. Will be generated automatically if it isn't specified
xsrfKey: ""
# Extra volumes to add to the container, e.g.:
# - name: registry-data
# persistentVolumeClaim:
# claimName: nfs-harbor-registry-pvc
extraVolumes: []
# Extra volume mounts to add to the container, e.g.:
# - mountPath: /data
# name: registry-data
# subPath: core
extraVolumeMounts: []

jobservice:
image:
Expand Down

0 comments on commit e3eb862

Please sign in to comment.