Skip to content

Commit 1ce4883

Browse files
committed
feat(registry): add extraVolumes and per-container extraVolumeMounts
1 parent 67fe3e5 commit 1ce4883

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

templates/registry/registry-dpl.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ spec:
209209
{{- if .Values.caBundleSecretName }}
210210
{{ include "harbor.caBundleVolumeMount" . | indent 8 }}
211211
{{- end }}
212+
{{- with .Values.registry.registry.extraVolumeMounts }}
213+
{{- toYaml . | nindent 8 }}
214+
{{- end }}
212215
- name: registryctl
213216
image: {{ .Values.registry.controller.image.repository }}:{{ .Values.registry.controller.image.tag }}
214217
imagePullPolicy: {{ .Values.imagePullPolicy }}
@@ -356,6 +359,9 @@ spec:
356359
{{- if .Values.caBundleSecretName }}
357360
{{ include "harbor.caBundleVolumeMount" . | indent 8 }}
358361
{{- end }}
362+
{{- with .Values.registry.controller.extraVolumeMounts }}
363+
{{- toYaml . | nindent 8 }}
364+
{{- end }}
359365
volumes:
360366
- name: registry-htpasswd
361367
secret:
@@ -412,6 +418,9 @@ spec:
412418
{{- if .Values.caBundleSecretName }}
413419
{{ include "harbor.caBundleVolume" . | indent 6 }}
414420
{{- end }}
421+
{{- with .Values.registry.extraVolumes }}
422+
{{- toYaml . | nindent 6 }}
423+
{{- end }}
415424
{{- with .Values.registry.nodeSelector }}
416425
nodeSelector:
417426
{{ toYaml . | indent 8 }}

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,7 @@ registry:
810810
# memory: 256Mi
811811
# cpu: 100m
812812
extraEnvVars: []
813+
extraVolumeMounts: []
813814
## Liveness probe values
814815
livenessProbe:
815816
initialDelaySeconds: 300
@@ -833,6 +834,7 @@ registry:
833834
# memory: 256Mi
834835
# cpu: 100m
835836
extraEnvVars: []
837+
extraVolumeMounts: []
836838
## Liveness probe values
837839
livenessProbe:
838840
initialDelaySeconds: 300
@@ -857,6 +859,7 @@ registry:
857859
minAvailable: 1
858860
# maxUnavailable: 1
859861
revisionHistoryLimit: 10
862+
extraVolumes: []
860863
nodeSelector: {}
861864
tolerations: []
862865
affinity: {}

0 commit comments

Comments
 (0)