Skip to content

Commit

Permalink
added conditional running of the SSE service
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Feb 26, 2024
1 parent 26c0e25 commit 6bae8cf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/ocis/docs/values.adoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ features:
# -- Reference to a ConfigMap containing images that can be referenced from the html mail template.
# 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

Expand Down Expand Up @@ -2328,4 +2329,3 @@ monitoring:
interval: 60s
# -- Scrape timeout.
scrapeTimeout: 60s

2 changes: 2 additions & 0 deletions charts/ocis/templates/sse/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if not .Values.features.disableSse }}
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameSSE" "appNameSuffix" "") -}}
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -89,3 +90,4 @@ spec:
{{ else }}
emptyDir: {}
{{ end }}
{{ end }}
2 changes: 2 additions & 0 deletions charts/ocis/templates/sse/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{ if not .Values.features.disableSse }}
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameSSE" "appNameSuffix" "") -}}
{{- $_ := set . "autoscaling" (default (default (dict) .Values.autoscaling) .Values.services.sse.autoscaling) -}}
{{ include "ocis.hpa" . }}
{{ end }}
2 changes: 2 additions & 0 deletions charts/ocis/templates/sse/pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
{{ if not .Values.features.disableSse }}
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameSSE" "appNameSuffix" "") -}}
{{ include "ocis.pdb" . }}
{{ end }}
1 change: 1 addition & 0 deletions charts/ocis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ features:
# -- Reference to a ConfigMap containing images that can be referenced from the html mail template.
# 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

Expand Down

0 comments on commit 6bae8cf

Please sign in to comment.