Skip to content

Commit

Permalink
Merge pull request goharbor#1646 from zyyw/registry-existing-secret
Browse files Browse the repository at this point in the history
fix: add REGISTRY_HTTP_SECRET env for registry if .Values.registry.existingSecret is set
  • Loading branch information
zyyw committed Dec 19, 2023
2 parents d7d22d7 + 71297fd commit d32655c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/registry/registry-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ spec:
name: {{ .Values.persistence.imageChartStorage.s3.existingSecret }}
{{- end }}
env:
{{- if .Values.registry.existingSecret }}
- name: REGISTRY_HTTP_SECRET
valueFrom:
secretKeyRef:
name: {{ .Values.registry.existingSecret }}
key: {{ .Values.registry.existingSecretKey }}
{{- end }}
{{- if has "registry" .Values.proxy.components }}
- name: HTTP_PROXY
value: "{{ .Values.proxy.httpProxy }}"
Expand Down

0 comments on commit d32655c

Please sign in to comment.