80 lines
2.4 KiB
YAML
80 lines
2.4 KiB
YAML
{{- 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: 0
|
|
homeserverList:
|
|
- {{ include "mycloud-matrix.domain" . | quote }}
|
|
featuredCommunities:
|
|
spaces:
|
|
{{- toYaml .Values.ingress.cinny.featuredCommunities.spaces | nindent 10 }}
|
|
rooms:
|
|
{{- toYaml .Values.ingress.cinny.featuredCommunities.rooms | nindent 10 }}
|
|
servers:
|
|
{{- with .Values.ingress.cinny.featuredCommunities.server }}
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- else }}
|
|
- {{ include "mycloud-matrix.domain" . | quote }}
|
|
{{- end }}
|
|
{{- 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 }}
|