mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 12:18:35 +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
|
- name: ui-secrets-private-key
|
||||||
mountPath: /etc/ui/private_key.pem
|
mountPath: /etc/ui/private_key.pem
|
||||||
subPath: private_key.pem
|
subPath: private_key.pem
|
||||||
{{- if not .Values.insecureRegistry }}
|
{{- if and (not .Values.insecureRegistry) .Values.ingress.enabled }}
|
||||||
- name: ca-download
|
- name: ca-download
|
||||||
mountPath: /etc/ui/ca/ca.crt
|
mountPath: /etc/ui/ca/ca.crt
|
||||||
subPath: ca.crt
|
subPath: ca.crt
|
||||||
@ -73,7 +73,7 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: private_key.pem
|
- key: private_key.pem
|
||||||
path: private_key.pem
|
path: private_key.pem
|
||||||
{{- if not .Values.insecureRegistry }}
|
{{- if and (not .Values.insecureRegistry) .Values.ingress.enabled }}
|
||||||
- name: ca-download
|
- name: ca-download
|
||||||
secret:
|
secret:
|
||||||
secretName: "{{ template "harbor.fullname" . }}-ingress"
|
secretName: "{{ template "harbor.fullname" . }}-ingress"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user