Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions charts/opencloud/templates/_helpers/tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,13 @@ Return the appropriate apiVersion for ingress
{{- print "networking.k8s.io/v1beta1" -}}
{{- end -}}
{{- end -}}

{{/*
Validate office suite configuration
Ensures that only one of Collabora or OnlyOffice can be enabled at the same time
*/}}
{{- define "opencloud.validateOfficeSuite" -}}
{{- if and .Values.collabora.enabled .Values.onlyoffice.enabled }}
{{- fail "Error: Only one of Collabora or OnlyOffice can be enabled at the same time! Both services use the same WOPI endpoints and cannot coexist. Please set either collabora.enabled=false or onlyoffice.enabled=false" }}
{{- end }}
{{- end -}}
1 change: 1 addition & 0 deletions charts/opencloud/templates/opencloud/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.opencloud.enabled }}
{{- include "opencloud.validateOfficeSuite" . }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down