fix(mycloud-nextcloud): add option to test different helm-chart from git

This commit is contained in:
WrenIX 2024-08-17 02:51:22 +02:00
parent 4bf0c6b6a1
commit 39c1ef6fcd
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 39 additions and 4 deletions

View file

@ -7,9 +7,14 @@ spec:
chart:
spec:
sourceRef:
kind: HelmRepository
name: "nextcloud"
{{- if .Values.chart.ref }}
kind: GitRepository
chart: "./charts/nextcloud"
{{- else }}
kind: HelmRepository
chart: "nextcloud"
{{- end }}
install:
{{- toYaml .Values.commons.helm.release.install | nindent 4 }}
test:
@ -45,6 +50,8 @@ spec:
name: {{ .Values.commons.mail.username | quote }}
password: {{ .Values.commons.mail.password | quote }}
defaultConfigs:
imaginary.config.php: true
configs:
proxy.config.php: |-
<?php
@ -69,6 +76,16 @@ spec:
'default_language' => {{ .Values.default.language | squote }},
'default_phone_region' => {{ .Values.default.phoneRegion | squote }},
);
reviews.config.php: |-
<?php
$CONFIG = array(
'enabledPreviewProviders' => array(
'OC\Preview\Imaginary',
'OC\Preview\MP3',
'OC\Preview\MarkDown',
'OC\Preview\OpenDocument',
),
);
{{- if or
.Values.commons.persistence.hostPath.enabled
@ -173,6 +190,9 @@ spec:
nginx:
enabled: true
imaginary:
enabled: true
metrics:
enabled: true
serviceMonitor:

View file

@ -1,8 +1,16 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
apiVersion: source.toolkit.fluxcd.io/v1
metadata:
name: nextcloud
{{- with .Values.chart.ref }}
kind: GitRepository
spec:
url: https://nextcloud.github.io/helm/
url: {{ $.Values.chart.url }}
ref:
{{- toYaml . | nindent 4 }}
{{- else }}
kind: HelmRepository
spec:
url: {{ .Values.chart.url }}
{{- end }}
interval: 10m

View file

@ -101,6 +101,13 @@ commons:
# @section -- Commons Redis
replicas: 0
chart:
# -- for default set: https://nextcloud.github.io/helm/
url: https://github.com/wrenix/nextcloud-helm.git
# -- for default set: null
ref:
branch: feat/imaginary
# -- generated by .Values.commons.masterPassword
adminPassword: