Skip to content

Commit 9d67d2d

Browse files
committed
Included st2stream
1 parent 92cced4 commit 9d67d2d

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Prefix template helpers with chart name and format helper comments as template comments. (#272) (by @cognifloyd)
66
* New feature: Add `extra_volumes` to all python-based st2 deployments. This can facilitate changing log levels by loading logging conf file(s) from a custom ConfigMap. (#276) (by @cognifloyd)
77
* Initialize basic unittest infrastructure using `helm-unittest`. Added tests for labels, custom annotations, SecurityContext, pullSecrets, pullPolicy, Resources, nodeSelector, tolerations, affinity, dnsPolicy, dnsConfig, ServiceAccount attach, postStartScript, and both sensor-modes. (#284, #288)
8-
* New feature to include possibility for external services in st2api and st2auth, setting default value for this services as `ClusterIP` and `hostname: ""`. (by @sandesvitor)
8+
* New feature to include possibility for external services in st2api, st2stream and st2auth, setting default value for this services as `ClusterIP` and `hostname: ""`. (by @sandesvitor)
99

1010
## v0.80.0
1111
* Switch st2 to `v3.6` as a new default stable version (#274)

templates/services.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ metadata:
7373
name: {{ .Release.Name }}-st2stream
7474
annotations:
7575
description: StackStorm st2stream - exposes a server-sent event stream, used by the clients like WebUI and ChatOps to receive update from the st2stream server.
76+
{- if .Values.st2stream.service.hostname }}
77+
external-dns.alpha.kubernetes.io/hostname: {{ .Values.st2stream.service.hostname | quote }}
78+
{{- end }}
79+
{{- if .Values.st2stream.service.annotations }}
80+
{{- toYaml .Values.st2stream.service.annotations | nindent 4 }}
81+
{{- end }}
7682
labels:
7783
app: st2stream
7884
tier: backend
@@ -84,7 +90,12 @@ spec:
8490
selector:
8591
app: st2stream
8692
release: {{ .Release.Name }}
87-
type: ClusterIP
93+
type: {{ .Values.st2stream.service.type }}
94+
{{- if contains "ExternalName" .Values.st2stream.service.type }}
95+
{{- if .Values.st2stream.service.hostname }}
96+
externalName: {{ .Values.st2stream.service.hostname }}
97+
{{- end }}
98+
{{- end }}
8899
ports:
89100
- protocol: TCP
90101
port: 9102

values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,14 @@ st2stream:
425425
affinity: {}
426426
env: {}
427427
# HTTP_PROXY: http://proxy:1234
428+
service:
429+
# type can be one of "ClusterIP", "NodePort", "LoadBalancer" or "ExternalName"
430+
type: "ClusterIP"
431+
# The hostname associated with st2api service (externalName, added to external DNS, etc.)
432+
hostname: ""
433+
# For more information regarding annotations, see
434+
# https://kubernetes.io/docs/concepts/services-networking/service/#ssl-support-on-aws
435+
annotations: {}
428436
serviceAccount:
429437
attach: false
430438
# postStartScript is optional. It has the contents of a bash script.

0 commit comments

Comments
 (0)