From 37a1dc886f63b9c48ef44e827b392517a8c813eb Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Mon, 3 Feb 2020 16:49:33 +0100
Subject: [PATCH] add a "path" to the spellchecker endpoint

---
 templates/onlyoffice-deployment.yaml | 3 +++
 templates/onlyoffice-ingress.yaml    | 8 +++++---
 values-local.yaml.example            | 2 --
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/templates/onlyoffice-deployment.yaml b/templates/onlyoffice-deployment.yaml
index 92af5f5b..2d853316 100644
--- a/templates/onlyoffice-deployment.yaml
+++ b/templates/onlyoffice-deployment.yaml
@@ -79,6 +79,9 @@ spec:
             - name: http
               containerPort: {{ .Values.onlyoffice.containerPort }}
               protocol: TCP
+            - name: spellchecker
+              containerPort: 8080
+              protocol: TCP
           resources:
             {{- toYaml .Values.onlyoffice.resources | nindent 12 }}
           securityContext:
diff --git a/templates/onlyoffice-ingress.yaml b/templates/onlyoffice-ingress.yaml
index 01ce893e..88329d13 100644
--- a/templates/onlyoffice-ingress.yaml
+++ b/templates/onlyoffice-ingress.yaml
@@ -30,11 +30,13 @@ spec:
     - host: {{ . | quote }}
       http:
         paths:
-  {{- range $ingressPaths }}
-          - path: {{ . }}
+          - path: "/"
             backend:
               serviceName: {{ $fullName }}
               servicePort: http
-  {{- end }}
+          - path: "/spellchecker"
+            backend:
+              serviceName: {{ $fullName }}
+              servicePort: spellchecker
   {{- end }}
 {{- end }}
diff --git a/values-local.yaml.example b/values-local.yaml.example
index 73243a3f..3206a7f1 100644
--- a/values-local.yaml.example
+++ b/values-local.yaml.example
@@ -31,8 +31,6 @@ onlyoffice:
   jwtSecret: Set any random secret for JWT here
   ingress:
     enabled: true
-    paths:
-      - "/"
     hosts:
       - "office.your.domain"
 
-- 
GitLab