rancher-partner-charts/charts/jfrog/artifactory-ha/107.90.5/templates/nginx-artifactory-conf.yaml

18 lines
606 B
YAML

{{- if and (not .Values.nginx.customArtifactoryConfigMap) .Values.nginx.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "artifactory-ha.fullname" . }}-nginx-artifactory-conf
labels:
app: {{ template "artifactory-ha.name" . }}
chart: {{ template "artifactory-ha.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
artifactory.conf: |
{{- if .Values.nginx.artifactoryConf }}
{{ tpl .Values.nginx.artifactoryConf . | indent 4 }}
{{- else }}
{{ tpl ( .Files.Get "files/nginx-artifactory-conf.yaml" ) . | indent 4 }}
{{- end }}
{{- end }}