mirror of
https://github.com/truenas/charts.git
synced 2026-04-05 19:58:21 +08:00
NAS-124160 / 24.04 / Allow to deploy collabora without certificate (#1549)
* Allow to deploy collabora without certificate * rename file * update description
This commit is contained in:
@@ -5,7 +5,7 @@ description: |
|
||||
annotations:
|
||||
title: Collabora
|
||||
type: application
|
||||
version: 1.2.14
|
||||
version: 1.2.15
|
||||
apiVersion: v2
|
||||
appVersion: '21.11.4.1.1'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
|
||||
26
library/ix-dev/charts/collabora/ci/http-values.yaml
Normal file
26
library/ix-dev/charts/collabora/ci/http-values.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
nodePort: 31980
|
||||
config:
|
||||
DONT_GEN_SSL_CERT: 'true'
|
||||
dictionaries: de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru
|
||||
domain: nextcloud\.domain\.tld|othernextcloud\.domain\.tld
|
||||
extra_params: --o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true
|
||||
--o:ssl.enable=false --o:net.proto=IPv4 --o:net.post_allow.host[0]=.+ --o:storage.wopi.host[0]=.+
|
||||
password: changeme
|
||||
server_name: ssh.sonicaj.com:49980
|
||||
timezone: Asia/Karachi
|
||||
username: admin
|
||||
ixChartContext:
|
||||
isInstall: false
|
||||
isUpdate: true
|
||||
isUpgrade: false
|
||||
operation: UPDATE
|
||||
storageClassName: ix-storage-class-col
|
||||
upgradeMetadata: {}
|
||||
ixExternalInterfacesConfiguration: []
|
||||
ixExternalInterfacesConfigurationNames: []
|
||||
ixVolumes: []
|
||||
environmentVariables: []
|
||||
extraAppVolumeMounts: []
|
||||
ixCertificateAuthorities: {}
|
||||
ixCertificates: {}
|
||||
certificate:
|
||||
@@ -71,14 +71,17 @@ questions:
|
||||
- "definitions/nodeIP"
|
||||
|
||||
- variable: certificate
|
||||
description: "Collabora Certificate"
|
||||
description: |
|
||||
Collabora Certificate</br>
|
||||
If you do not choose a certificate and do not configure an external reverse proxy</br>
|
||||
you might have to adjust the extra_params.
|
||||
label: "Certificate"
|
||||
group: "Collabora Configuration"
|
||||
schema:
|
||||
type: int
|
||||
$ref:
|
||||
- "definitions/certificate"
|
||||
"null": false
|
||||
"null": true
|
||||
|
||||
- variable: extraAppVolumeMounts
|
||||
label: "Collabora Extra Host Path Volumes"
|
||||
|
||||
@@ -15,6 +15,7 @@ spec:
|
||||
labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
containers:
|
||||
{{ if .Values.certificate }}
|
||||
- name: {{ .Chart.Name }}-nginx
|
||||
image: {{ printf "%s:%s" .Values.nginx.image.repository .Values.nginx.image.tag }}
|
||||
imagePullPolicy: {{ .Values.nginx.image.pullPolicy }}
|
||||
@@ -66,6 +67,7 @@ spec:
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 60
|
||||
successThreshold: 1
|
||||
{{ end }}
|
||||
- name: {{ .Chart.Name }}
|
||||
{{ include "common.resources.limitation" . | nindent 10 }}
|
||||
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
|
||||
@@ -120,6 +122,7 @@ spec:
|
||||
{{ $envList = mustAppend $envList (dict "name" "password" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }}
|
||||
{{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
|
||||
volumes:
|
||||
{{ if .Values.certificate }}
|
||||
- name: configuration
|
||||
configMap:
|
||||
defaultMode: 0700
|
||||
@@ -127,6 +130,7 @@ spec:
|
||||
- name: certs
|
||||
secret:
|
||||
secretName: {{ include "secretName" . }}
|
||||
{{ end }}
|
||||
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
|
||||
- name: extrappvolume-{{ $index }}
|
||||
hostPath:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{{ if .Values.certificate }}
|
||||
{{- $serviceName := "localhost" -}}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
@@ -120,3 +121,4 @@ data:
|
||||
}
|
||||
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{{ $port := .Values.nodePort }}
|
||||
{{ $ports := list }}
|
||||
{{ $ports = mustAppend $ports (dict "name" "https" "nodePort" $port "targetPort" 443 "port" 443) }}
|
||||
{{ $params := (. | mustDeepCopy) }}
|
||||
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
|
||||
{{ include "common.classes.service" $params }}
|
||||
@@ -7,9 +7,11 @@ type: Opaque
|
||||
data:
|
||||
username: {{ .Values.config.username | b64enc | quote }}
|
||||
password: {{ .Values.config.password | b64enc | quote }}
|
||||
{{ if eq (include "certAvailable" .) "true" }}
|
||||
{{ if .Values.certificate }}
|
||||
{{ if eq (include "certAvailable" .) "true" }}
|
||||
certPublicKey: {{ (include "cert.publicKey" .) | toString | b64enc | quote }}
|
||||
certPrivateKey: {{ (include "cert.privateKey" .) | toString | b64enc | quote }}
|
||||
{{ else }}
|
||||
{{ fail "No certificate configured for Collabora" }}
|
||||
{{ else }}
|
||||
{{ fail "No certificate configured for Collabora" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
10
library/ix-dev/charts/collabora/templates/service.yaml
Normal file
10
library/ix-dev/charts/collabora/templates/service.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ $port := .Values.nodePort }}
|
||||
{{ $ports := list }}
|
||||
{{ if .Values.certificate }}
|
||||
{{ $ports = mustAppend $ports (dict "name" "https" "nodePort" $port "targetPort" 443 "port" 443) }}
|
||||
{{ else }}
|
||||
{{ $ports = mustAppend $ports (dict "name" "http" "nodePort" $port "targetPort" 9980 "port" 9980) }}
|
||||
{{ end }}
|
||||
{{ $params := (. | mustDeepCopy) }}
|
||||
{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }}
|
||||
{{ include "common.classes.service" $params }}
|
||||
Reference in New Issue
Block a user