mirror of
https://github.com/goharbor/harbor
synced 2025-04-10 06:19:21 +00:00
Do not mount secret if ingress is disabled
This commit is contained in:
parent
7d6f8f94c4
commit
ba36dad54c
|
@ -50,7 +50,7 @@ spec:
|
|||
- name: ui-secrets-private-key
|
||||
mountPath: /etc/ui/private_key.pem
|
||||
subPath: private_key.pem
|
||||
{{- if not .Values.insecureRegistry }}
|
||||
{{- if and (not .Values.insecureRegistry) .Values.ingress.enabled }}
|
||||
- name: ca-download
|
||||
mountPath: /etc/ui/ca/ca.crt
|
||||
subPath: ca.crt
|
||||
|
@ -73,7 +73,7 @@ spec:
|
|||
items:
|
||||
- key: private_key.pem
|
||||
path: private_key.pem
|
||||
{{- if not .Values.insecureRegistry }}
|
||||
{{- if and (not .Values.insecureRegistry) .Values.ingress.enabled }}
|
||||
- name: ca-download
|
||||
secret:
|
||||
secretName: "{{ template "harbor.fullname" . }}-ingress"
|
||||
|
|
Loading…
Reference in New Issue
Block a user