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: chart:
spec: spec:
sourceRef: sourceRef:
kind: HelmRepository
name: "nextcloud" name: "nextcloud"
{{- if .Values.chart.ref }}
kind: GitRepository
chart: "./charts/nextcloud"
{{- else }}
kind: HelmRepository
chart: "nextcloud" chart: "nextcloud"
{{- end }}
install: install:
{{- toYaml .Values.commons.helm.release.install | nindent 4 }} {{- toYaml .Values.commons.helm.release.install | nindent 4 }}
test: test:
@ -45,6 +50,8 @@ spec:
name: {{ .Values.commons.mail.username | quote }} name: {{ .Values.commons.mail.username | quote }}
password: {{ .Values.commons.mail.password | quote }} password: {{ .Values.commons.mail.password | quote }}
defaultConfigs:
imaginary.config.php: true
configs: configs:
proxy.config.php: |- proxy.config.php: |-
<?php <?php
@ -69,6 +76,16 @@ spec:
'default_language' => {{ .Values.default.language | squote }}, 'default_language' => {{ .Values.default.language | squote }},
'default_phone_region' => {{ .Values.default.phoneRegion | 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 {{- if or
.Values.commons.persistence.hostPath.enabled .Values.commons.persistence.hostPath.enabled
@ -173,6 +190,9 @@ spec:
nginx: nginx:
enabled: true enabled: true
imaginary:
enabled: true
metrics: metrics:
enabled: true enabled: true
serviceMonitor: serviceMonitor:

View file

@ -1,8 +1,16 @@
--- ---
apiVersion: source.toolkit.fluxcd.io/v1beta2 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata: metadata:
name: nextcloud name: nextcloud
{{- with .Values.chart.ref }}
kind: GitRepository
spec: 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 interval: 10m

View file

@ -101,6 +101,13 @@ commons:
# @section -- Commons Redis # @section -- Commons Redis
replicas: 0 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 # -- generated by .Values.commons.masterPassword
adminPassword: adminPassword: