Skip to content

Commit

Permalink
sse subsection added
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Feb 27, 2024
1 parent 76ecd1a commit b9a2d4c
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 15 deletions.
12 changes: 6 additions & 6 deletions charts/ocis/docs/values-desc-table.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,6 @@ a| [subs=-attributes]
a| [subs=-attributes]
`false`
| Create demo users on the first startup. Not recommended for production installations.
| features.disableSse
a| [subs=-attributes]
+bool+
a| [subs=-attributes]
`false`
| Disables server-sent events (sse). When disabled, clients will no longer receive sse notifications.
| features.edition
a| [subs=-attributes]
+string+
Expand Down Expand Up @@ -732,6 +726,12 @@ a| [subs=-attributes]
a| [subs=-attributes]
`3`
| Minimum number of characters to enter before a client should start a search for Share receivers. This setting can be used to customize the user experience if e.g too many results are displayed.
| features.sse.disabled
a| [subs=-attributes]
+bool+
a| [subs=-attributes]
`false`
| Disables SSE. When disabled, clients will no longer receive sse notifications.
| features.virusscan.enabled
a| [subs=-attributes]
+bool+
Expand Down
6 changes: 4 additions & 2 deletions charts/ocis/docs/values.adoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,10 @@ features:
# This ConfigMap is optional and can be omitted when images are not used.
htmlMailImagesConfigRef: "html-mail-images"

# -- Disables server-sent events (sse). When disabled, clients will no longer receive sse notifications.
disableSse: false
# SSE (server-sent events) settings.
sse:
# -- Disables SSE. When disabled, clients will no longer receive sse notifications.
disabled: false

# Sharing related settings
sharing:
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
value: {{ not (eq .Values.services.search.extractor.type "basic") | quote }}

- name: OCIS_DISABLE_SSE
value: {{ .Values.features.disableSse | quote }}
value: {{ .Values.features.sse.disabled | quote }}

# cache
# the stat cache is disabled for now for performance reasons, see https://github.com/owncloud/ocis-charts/issues/214
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/sse/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if not .Values.features.disableSse }}
{{ if not .Values.features.sse.disabled }}
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameSSE" "appNameSuffix" "") -}}
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/sse/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if not .Values.features.disableSse }}
{{ if not .Values.features.sse.disabled }}
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameSSE" "appNameSuffix" "") -}}
{{- $_ := set . "autoscaling" (default (default (dict) .Values.autoscaling) .Values.services.sse.autoscaling) -}}
{{ include "ocis.hpa" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/ocis/templates/sse/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if not .Values.features.disableSse }}
{{ if not .Values.features.sse.disabled }}
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameSSE" "appNameSuffix" "") -}}
{{ include "ocis.pdb" . }}
{{ end }}
2 changes: 1 addition & 1 deletion charts/ocis/templates/userlog/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
key: jwt-secret

- name: OCIS_DISABLE_SSE
value: {{ .Values.features.disableSse | quote }}
value: {{ .Values.features.sse.disabled | quote }}

{{- include "ocis.livenessProbe" . | nindent 10 }}

Expand Down
6 changes: 4 additions & 2 deletions charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ features:
# This ConfigMap is optional and can be omitted when images are not used.
htmlMailImagesConfigRef: "html-mail-images"

# -- Disables server-sent events (sse). When disabled, clients will no longer receive sse notifications.
disableSse: false
# SSE (server-sent events) settings.
sse:
# -- Disables SSE. When disabled, clients will no longer receive sse notifications.
disabled: false

# Sharing related settings
sharing:
Expand Down

0 comments on commit b9a2d4c

Please sign in to comment.