1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {{- define "distribution.persistence" -}}
- persistence:
- {{- if .Values.distributionStorage.useFilesystemBackend }}
- data:
- enabled: true
- type: {{ .Values.distributionStorage.data.type }}
- datasetName: {{ .Values.distributionStorage.data.datasetName | default "" }}
- hostPath: {{ .Values.distributionStorage.data.hostPath | default "" }}
- targetSelector:
- distribution:
- distribution:
- mountPath: /var/lib/registry
- 01-permissions:
- mountPath: /mnt/directories/registry
- {{- end }}
- tmp:
- enabled: true
- type: emptyDir
- targetSelector:
- distribution:
- distribution:
- mountPath: /tmp
- {{- range $idx, $storage := .Values.distributionStorage.additionalStorages }}
- {{ printf "distribution-%v" (int $idx) }}:
- enabled: true
- type: {{ $storage.type }}
- datasetName: {{ $storage.datasetName | default "" }}
- hostPath: {{ $storage.hostPath | default "" }}
- targetSelector:
- distribution:
- distribution:
- mountPath: {{ $storage.mountPath }}
- 01-permissions:
- mountPath: /mnt/directories{{ $storage.mountPath }}
- {{- end -}}
- {{- if .Values.distributionConfig.basicAuthUsers }}
- htpasswd:
- enabled: true
- type: secret
- objectName: distribution-htpasswd
- defaultMode: "0600"
- items:
- - key: htpasswd
- path: htpasswd
- targetSelector:
- distribution:
- distribution:
- mountPath: /auth
- readOnly: true
- {{- end -}}
- {{- if .Values.distributionNetwork.certificateID }}
- cert:
- enabled: true
- type: secret
- objectName: distribution-cert
- defaultMode: "0600"
- items:
- - key: tls.key
- path: tls.key
- - key: tls.crt
- path: tls.crt
- targetSelector:
- distribution:
- distribution:
- mountPath: /certs
- readOnly: true
- scaleCertificate:
- distribution-cert:
- enabled: true
- id: {{ .Values.distributionNetwork.certificateID }}
- {{- end -}}
- {{- end -}}
|