{{- if .Values.ingress.element.enabled }} --- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository metadata: name: "{{ .Release.Name }}-element-web" spec: url: https://ananace.gitlab.io/charts interval: 10m --- apiVersion: helm.toolkit.fluxcd.io/v2 kind: HelmRelease metadata: name: "{{ .Release.Name }}-element-web" spec: chart: spec: sourceRef: kind: HelmRepository name: "{{ .Release.Name }}-element-web" chart: "element-web" install: {{- toYaml .Values.commons.helm.release.install | nindent 4 }} test: {{- toYaml .Values.commons.helm.release.test | nindent 4 }} upgrade: {{- toYaml .Values.commons.helm.release.upgrade | nindent 4 }} driftDetection: {{- toYaml .Values.commons.helm.release.driftDetection | nindent 4 }} interval: 10m values: image: repository: ghcr.io/element-hq/element-web tag: v1.11.95 {{- $host := .Values.ingress.element.host | default (printf "element.%s" .Values.commons.ingress.domain) }} defaultServer: url: https://{{ include "mycloud-matrix.host.server" . }} name: {{ include "mycloud-matrix.domain" . | quote }} config: sso_redirect_options: on_welcome_page: true features: {{- with .Values.ingress.element.config.features }} {{- toYaml . | nindent 8 }} {{- end }} {{- if .Values.ingress.elementCall.enabled }} feature_video_rooms: true feature_element_call_video_rooms: true feature_group_calls: true element_call: url: "https://{{ .Values.ingress.elementCall.host | default (printf "call.%s" .Values.commons.ingress.domain) }}" use_exclusively: true {{- end }} {{- with (omit .Values.ingress.element.config "features") }} {{- toYaml . | nindent 6 }} {{- end }} ingress: enabled: true annotations: {{- with .Values.commons.ingress.annotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.ingress.element.annotations }} {{- toYaml . | nindent 8 }} {{- end }} hosts: - {{ $host | quote }} {{- if .Values.commons.ingress.tls.enabled }} tls: {{- with .Values.commons.ingress.tls.override }} {{- toYaml . | nindent 8 }} {{- else }} - secretName: "mycloud-matrix-element-cert" hosts: - "{{ $host }}" {{- end }} {{- end }} {{- end }}