fix(mycloud-matrix): Add client cinny

This commit is contained in:
WrenIX 2025-04-05 16:26:07 +02:00
parent c5bf68c60c
commit d853de491b
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
2 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1,69 @@
{{- if .Values.ingress.cinny.enabled }}
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: OCIRepository
metadata:
name: "{{ .Release.Name }}-cinny"
spec:
url: oci://codeberg.org/wrenix/helm-charts/cinny
interval: 10m
ref:
semver: "^0.2.1"
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: "{{ .Release.Name }}-cinny"
spec:
chartRef:
kind: OCIRepository
name: "{{ .Release.Name }}-cinny"
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:
{{- $host := .Values.ingress.cinny.host | default (printf "cinny.%s" .Values.commons.ingress.domain) }}
config:
defaultHomeserver: 1
homeserverList:
- {{ include "mycloud-matrix.host.server" . | quote }}
{{- if .Values.commons.networkpolicies.enabled }}
networkPolicy:
enabled: true
ingress:
http:
{{- toYaml .Values.commons.networkpolicies.from.ingress | nindent 10 }}
egress:
enabled: true
{{- end }}
ingress:
enabled: true
annotations:
{{- with .Values.commons.ingress.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.ingress.cinny.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
hosts:
- host: {{ $host | quote }}
paths:
- path: /
pathType: ImplementationSpecific
{{- if .Values.commons.ingress.tls.enabled }}
tls:
{{- with .Values.commons.ingress.tls.override }}
{{- toYaml . | nindent 8 }}
{{- else }}
- secretName: "{{ .Release.Name }}-cinny-cert"
hosts:
- "{{ $host }}"
{{- end }}
{{- end }}
{{- end }}

View file

@ -208,6 +208,11 @@ ingress:
# -- default: hydrogen.(.commons.ingress.domain)
host:
annotations: {}
cinny:
enabled: false
# -- default: cinny.(.commons.ingress.domain)
host:
annotations: {}
livekit:
enabled: false
# -- default: sfu.call.(.commons.ingress.domain)