Commit 27820038 authored by root's avatar root

update

parent 389ab421
...@@ -135,16 +135,15 @@ spec: ...@@ -135,16 +135,15 @@ spec:
- name: registry-config - name: registry-config
configMap: configMap:
name: "{{ template "harbor.registry" . }}" name: "{{ template "harbor.registry" . }}"
{{- if eq $storage.type "filesystem" }} {{- if eq .Values.registry.storageSpec.type "hostPath" }}
{{- if eq .Values.registry.storageSpec.type "hostPath" }}
- name: data - name: data
hostPath: hostPath:
path: {{.Values.registry.storageSpec.hostPath.root | default "/data" }}/{{ .Release.Namespace }}/{{ .Release.Name }}/registry path: {{.Values.registry.storageSpec.hostPath.root | default "/data" }}/{{ .Release.Namespace }}/{{ .Release.Name }}/registry
{{- else if eq .Values.registry.storageSpec.type "emptyDir" }} {{- else if eq .Values.registry.storageSpec.type "emptyDir" }}
- name: data - name: data
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}
{{- if eq .Values.registry.storageSpec.type "volumeClaimTemplate" }} {{- if eq .Values.registry.storageSpec.type "volumeClaimTemplate" }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: "data" name: "data"
...@@ -154,4 +153,3 @@ spec: ...@@ -154,4 +153,3 @@ spec:
spec: spec:
{{ toYaml $.Values.registry.storageSpec.volumeClaimTemplate.spec | indent 6 }} {{ toYaml $.Values.registry.storageSpec.volumeClaimTemplate.spec | indent 6 }}
{{- end }} {{- end }}
{{- end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment