Skip to content

Commit

Permalink
Fix the registry's containerPort (#1496)
Browse files Browse the repository at this point in the history
The registry's containerPort should use .Values.metrics.registry.port
instead of 5001 if .Values.metrics.enabled is true.

Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
  • Loading branch information
kariya-mitsuru committed Feb 14, 2024
1 parent db8cd74 commit 863d4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/registry/registry-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ spec:
{{- end }}
ports:
- containerPort: {{ template "harbor.registry.containerPort" . }}
- containerPort: 5001
- containerPort: {{ ternary .Values.metrics.registry.port 5001 .Values.metrics.enabled }}
volumeMounts:
- name: registry-data
mountPath: {{ .Values.persistence.imageChartStorage.filesystem.rootdirectory }}
Expand Down

0 comments on commit 863d4d0

Please sign in to comment.