@@ -29,43 +29,43 @@ spec:
2929 spec :
3030 {{- if .Values.metrics.image.pullSecrets }}
3131 imagePullSecrets :
32- {{- range .Values.metrics.image.pullSecrets }}
32+ {{- range .Values.metrics.image.pullSecrets }}
3333 - name : {{ . }}
34- {{- end}}
34+ {{- end}}
3535 {{- end }}
3636 containers :
37- - name : metrics-exporter
38- image : " {{ .Values.metrics.image.repository }}:{{ .Values.metrics.image.tag }}"
39- imagePullPolicy : {{ .Values.metrics.image.pullPolicy }}
40- env :
41- {{- if .Values.metrics.token }}
42- - name : NEXTCLOUD_AUTH_TOKEN
43- valueFrom :
44- secretKeyRef :
45- name : {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
46- key : {{ .Values.nextcloud.existingSecret.tokenKey }}
47- {{- else }}
48- - name : NEXTCLOUD_USERNAME
49- valueFrom :
50- secretKeyRef :
51- name : {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
52- key : {{ .Values.nextcloud.existingSecret.usernameKey }}
53- - name : NEXTCLOUD_PASSWORD
54- valueFrom :
55- secretKeyRef :
56- name : {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
57- key : {{ .Values.nextcloud.existingSecret.passwordKey }}
58- {{- end }}
59- # NEXTCLOUD_SERVER is used by metrics-exporter to reach the Nextcloud (K8s-)Service to grab the serverinfo api endpoint
60- - name : NEXTCLOUD_SERVER # deployment.namespace.svc.cluster.local
61- value : " http{{ if .Values.metrics.https }}s{{ end }}://{{ template " nextcloud.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.port }}"
62- - name : NEXTCLOUD_TIMEOUT
63- value : {{ .Values.metrics.timeout }}
64- - name : NEXTCLOUD_TLS_SKIP_VERIFY
65- value : {{ .Values.metrics.tlsSkipVerify | quote }}
37+ - name : metrics-exporter
38+ image : " {{ .Values.metrics.image.repository }}:{{ .Values.metrics.image.tag }}"
39+ imagePullPolicy : {{ .Values.metrics.image.pullPolicy }}
40+ env :
41+ {{- if .Values.metrics.token }}
42+ - name : NEXTCLOUD_AUTH_TOKEN
43+ valueFrom :
44+ secretKeyRef :
45+ name : {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
46+ key : {{ .Values.nextcloud.existingSecret.tokenKey }}
47+ {{- else }}
48+ - name : NEXTCLOUD_USERNAME
49+ valueFrom :
50+ secretKeyRef :
51+ name : {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
52+ key : {{ .Values.nextcloud.existingSecret.usernameKey }}
53+ - name : NEXTCLOUD_PASSWORD
54+ valueFrom :
55+ secretKeyRef :
56+ name : {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
57+ key : {{ .Values.nextcloud.existingSecret.passwordKey }}
58+ {{- end }}
59+ # NEXTCLOUD_SERVER is used by metrics-exporter to reach the Nextcloud (K8s-)Service to grab the serverinfo api endpoint
60+ - name : NEXTCLOUD_SERVER # deployment.namespace.svc.cluster.local
61+ value : " http{{ if .Values.metrics.https }}s{{ end }}://{{ template " nextcloud.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.port }}"
62+ - name : NEXTCLOUD_TIMEOUT
63+ value : {{ .Values.metrics.timeout }}
64+ - name : NEXTCLOUD_TLS_SKIP_VERIFY
65+ value : {{ .Values.metrics.tlsSkipVerify | quote }}
6666 ports :
67- - name : metrics
68- containerPort : 9205
67+ - name : metrics
68+ containerPort : 9205
6969 {{- if .Values.metrics.resources }}
7070 resources : {{- toYaml .Values.metrics.resources | nindent 10 }}
7171 {{- end }}
0 commit comments