Skip to content

Commit 712005e

Browse files
committed
Merge Helm Chart release/v3.1.0 into master
2 parents 9b0839b + 3a705d3 commit 712005e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2133
-42
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 3.1.0
4+
5+
### New Features
6+
7+
* Added the ability set up Horizontal Pod Autoscaling
8+
* Added the `global.installationType` parameter, which also affects the edition type (Community/Enterprise/Developer) of the built-in Docs if its installation is enabled (docs.enabled=true)
9+
* Added the ability to set additional custom env variables for containers
10+
* Added the ability to add additional custom volumes for containers
11+
12+
### Changes
13+
14+
* Released ONLYOFFICE DocSpace v3.0.4
15+
* The `connections.installationType` parameter has been replaced with `global.installationType`. The value for `connections.installationType` is now derived from `global.installationType`
16+
317
## 3.0.1
418

519
### Changes

Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: Helm chart for installing ONLYOFFICE DocSpace in Kubernetes
44
type: application
55
dependencies:
66
- name: docs
7-
version: 4.4.1
7+
version: 4.5.0
88
repository: https://download.onlyoffice.com/charts/stable
99
condition: docs.enabled
10-
version: 3.0.1
11-
appVersion: 3.0.1
10+
version: 3.1.0
11+
appVersion: 3.0.4

README.md

Lines changed: 63 additions & 12 deletions
Large diffs are not rendered by default.

sources/scripts/test_docspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
redisPort = os.environ.get('REDIS_PORT')
3535
redisUser = os.environ.get('REDIS_USER_NAME')
3636
redisPassword = os.environ.get('REDIS_PASSWORD')
37-
redisDBNum = '0'
37+
redisDBNum = os.environ.get('REDIS_DB')
3838
redisConnectTimeout = 15
3939

4040
dbType = 'mysql'

templates/_helpers.tpl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
{{/*
2+
Check the Installation type
3+
*/}}
4+
{{- define "docspace.installation.type" -}}
5+
{{- $installationType := .Values.global.installationType -}}
6+
{{- $possibleInstallationTypes := list "COMMUNITY" "DEVELOPER" "ENTERPRISE" -}}
7+
{{- if has $installationType $possibleInstallationTypes }}
8+
{{- $installationType -}}
9+
{{- else -}}
10+
{{- fail "You have specified an unsupported Installation type! Possible values: COMMUNITY, DEVELOPER and ENTERPRISE" -}}
11+
{{- end -}}
12+
{{- end -}}
13+
114
{{/*
215
Get the DocSpace Namespace
316
*/}}

templates/applications/api-system.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ metadata:
1414
annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 4 }}
1515
{{- end }}
1616
spec:
17+
{{- if not .Values.apiSystem.autoscaling.enabled }}
1718
replicas: {{ .Values.apiSystem.replicaCount }}
19+
{{- end }}
1820
selector:
1921
matchLabels:
2022
app: api-system
@@ -182,6 +184,9 @@ spec:
182184
secretKeyRef:
183185
name: {{ template "docspace.jwt.secretName" . }}
184186
key: JWT_HEADER
187+
{{- with .Values.apiSystem.extraEnvVars }}
188+
{{- toYaml . | nindent 8 }}
189+
{{- end }}
185190
envFrom:
186191
- configMapRef:
187192
name: docspace
@@ -198,6 +203,9 @@ spec:
198203
subPath: {{ . }}
199204
{{- end }}
200205
{{- end }}
206+
{{- with .Values.apiSystem.extraVolumeMounts }}
207+
{{- toYaml . | nindent 8 }}
208+
{{- end }}
201209
- name: docspace-data
202210
mountPath: /app/{{ .Values.product.name }}/data
203211
- name: files-data
@@ -210,6 +218,9 @@ spec:
210218
secret:
211219
secretName: {{ .Values.extraConf.secretName }}
212220
{{- end }}
221+
{{- with .Values.apiSystem.extraVolumes }}
222+
{{- toYaml . | nindent 6 }}
223+
{{- end }}
213224
- name: docspace-data
214225
persistentVolumeClaim:
215226
claimName: {{ template "docspace.pvc.data.name" . }}

templates/applications/api.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ metadata:
1414
annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 4 }}
1515
{{- end }}
1616
spec:
17+
{{- if not .Values.api.autoscaling.enabled }}
1718
replicas: {{ .Values.api.replicaCount }}
19+
{{- end }}
1820
selector:
1921
matchLabels:
2022
app: api
@@ -182,6 +184,9 @@ spec:
182184
secretKeyRef:
183185
name: {{ template "docspace.jwt.secretName" . }}
184186
key: JWT_HEADER
187+
{{- with .Values.api.extraEnvVars }}
188+
{{- toYaml . | nindent 8 }}
189+
{{- end }}
185190
envFrom:
186191
- configMapRef:
187192
name: docspace
@@ -198,6 +203,9 @@ spec:
198203
subPath: {{ . }}
199204
{{- end }}
200205
{{- end }}
206+
{{- with .Values.api.extraVolumeMounts }}
207+
{{- toYaml . | nindent 8 }}
208+
{{- end }}
201209
- name: docspace-data
202210
mountPath: /app/{{ .Values.product.name }}/data
203211
- name: files-data
@@ -210,6 +218,9 @@ spec:
210218
secret:
211219
secretName: {{ .Values.extraConf.secretName }}
212220
{{- end }}
221+
{{- with .Values.api.extraVolumes }}
222+
{{- toYaml . | nindent 6 }}
223+
{{- end }}
213224
- name: docspace-data
214225
persistentVolumeClaim:
215226
claimName: {{ template "docspace.pvc.data.name" . }}

templates/applications/backup-background-tasks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ metadata:
1414
annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 4 }}
1515
{{- end }}
1616
spec:
17+
{{- if not .Values.backupBackgroundTasks.autoscaling.enabled }}
1718
replicas: {{ .Values.backupBackgroundTasks.replicaCount }}
19+
{{- end }}
1820
selector:
1921
matchLabels:
2022
app: backup-background-tasks
@@ -182,6 +184,9 @@ spec:
182184
secretKeyRef:
183185
name: {{ template "docspace.jwt.secretName" . }}
184186
key: JWT_HEADER
187+
{{- with .Values.backupBackgroundTasks.extraEnvVars }}
188+
{{- toYaml . | nindent 8 }}
189+
{{- end }}
185190
envFrom:
186191
- configMapRef:
187192
name: docspace
@@ -198,6 +203,9 @@ spec:
198203
subPath: {{ . }}
199204
{{- end }}
200205
{{- end }}
206+
{{- with .Values.backupBackgroundTasks.extraVolumeMounts }}
207+
{{- toYaml . | nindent 8 }}
208+
{{- end }}
201209
- name: docspace-data
202210
mountPath: /app/{{ .Values.product.name }}/data
203211
- name: files-data
@@ -210,6 +218,9 @@ spec:
210218
secret:
211219
secretName: {{ .Values.extraConf.secretName }}
212220
{{- end }}
221+
{{- with .Values.backupBackgroundTasks.extraVolumes }}
222+
{{- toYaml . | nindent 6 }}
223+
{{- end }}
213224
- name: docspace-data
214225
persistentVolumeClaim:
215226
claimName: {{ template "docspace.pvc.data.name" . }}

templates/applications/backup.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ metadata:
1414
annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 4 }}
1515
{{- end }}
1616
spec:
17+
{{- if not .Values.backup.autoscaling.enabled }}
1718
replicas: {{ .Values.backup.replicaCount }}
19+
{{- end }}
1820
selector:
1921
matchLabels:
2022
app: backup
@@ -182,6 +184,9 @@ spec:
182184
secretKeyRef:
183185
name: {{ template "docspace.jwt.secretName" . }}
184186
key: JWT_HEADER
187+
{{- with .Values.backup.extraEnvVars }}
188+
{{- toYaml . | nindent 8 }}
189+
{{- end }}
185190
envFrom:
186191
- configMapRef:
187192
name: docspace
@@ -198,6 +203,9 @@ spec:
198203
subPath: {{ . }}
199204
{{- end }}
200205
{{- end }}
206+
{{- with .Values.backup.extraVolumeMounts }}
207+
{{- toYaml . | nindent 8 }}
208+
{{- end }}
201209
- name: docspace-data
202210
mountPath: /app/{{ .Values.product.name }}/data
203211
- name: files-data
@@ -210,6 +218,9 @@ spec:
210218
secret:
211219
secretName: {{ .Values.extraConf.secretName }}
212220
{{- end }}
221+
{{- with .Values.backup.extraVolumes }}
222+
{{- toYaml . | nindent 6 }}
223+
{{- end }}
213224
- name: docspace-data
214225
persistentVolumeClaim:
215226
claimName: {{ template "docspace.pvc.data.name" . }}

templates/applications/clear-events.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ metadata:
1414
annotations: {{- include "docspace.annotations" ( dict "keyName" $dictValue "context" $ ) | nindent 4 }}
1515
{{- end }}
1616
spec:
17+
{{- if not .Values.clearEvents.autoscaling.enabled }}
1718
replicas: {{ .Values.clearEvents.replicaCount }}
19+
{{- end }}
1820
selector:
1921
matchLabels:
2022
app: clear-events
@@ -182,6 +184,9 @@ spec:
182184
secretKeyRef:
183185
name: {{ template "docspace.jwt.secretName" . }}
184186
key: JWT_HEADER
187+
{{- with .Values.clearEvents.extraEnvVars }}
188+
{{- toYaml . | nindent 8 }}
189+
{{- end }}
185190
envFrom:
186191
- configMapRef:
187192
name: docspace
@@ -198,6 +203,9 @@ spec:
198203
subPath: {{ . }}
199204
{{- end }}
200205
{{- end }}
206+
{{- with .Values.clearEvents.extraVolumeMounts }}
207+
{{- toYaml . | nindent 8 }}
208+
{{- end }}
201209
- name: docspace-data
202210
mountPath: /app/{{ .Values.product.name }}/data
203211
- name: files-data
@@ -210,6 +218,9 @@ spec:
210218
secret:
211219
secretName: {{ .Values.extraConf.secretName }}
212220
{{- end }}
221+
{{- with .Values.clearEvents.extraVolumes }}
222+
{{- toYaml . | nindent 6 }}
223+
{{- end }}
213224
- name: docspace-data
214225
persistentVolumeClaim:
215226
claimName: {{ template "docspace.pvc.data.name" . }}

0 commit comments

Comments
 (0)