Skip to content

Commit f8cf007

Browse files
darkowlzzjessebotwrenix
authored
Include nextcloud service in trusted domains for metrics exporter (#483)
* Include service in trusted domains for metrics When nextcloud-exporter is used by enabling metrics, it fails to fetch the serverinfo with 400 response code. This is related to the switch from ingress to local service endpoint for nextcloud-exporter. To fix this, in addition to .Values.nextcloud.host, the nextcloud service also need to be included in the trusted domains. Signed-off-by: Sunny <darkowlzz@protonmail.com> * Update charts/nextcloud/templates/_helpers.tpl - use full service name and fix spacing for trusted domains Co-authored-by: WrenIX <133280015+wrenix@users.noreply.github.com> Signed-off-by: JesseBot <jessebot@linux.com> --------- Signed-off-by: Sunny <darkowlzz@protonmail.com> Signed-off-by: JesseBot <jessebot@linux.com> Co-authored-by: JesseBot <jessebot@linux.com> Co-authored-by: WrenIX <133280015+wrenix@users.noreply.github.com>
1 parent 5bde14f commit f8cf007

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 4.6.10
3+
version: 4.6.11
44
appVersion: 29.0.1
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:

charts/nextcloud/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Create environment variables used to configure the nextcloud container as well a
178178
name: {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
179179
key: {{ .Values.nextcloud.existingSecret.passwordKey }}
180180
- name: NEXTCLOUD_TRUSTED_DOMAINS
181-
value: {{ .Values.nextcloud.host }}
181+
value: {{ .Values.nextcloud.host }}{{ if .Values.metrics.enabled }} {{ template "nextcloud.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local{{ end }}
182182
{{- if ne (int .Values.nextcloud.update) 0 }}
183183
- name: NEXTCLOUD_UPDATE
184184
value: {{ .Values.nextcloud.update | quote }}

0 commit comments

Comments
 (0)