Skip to content

Commit 31242c5

Browse files
author
hanancha
committed
Update remaining templates to remove enterprise support
1 parent 513fef8 commit 31242c5

File tree

6 files changed

+22
-66
lines changed

6 files changed

+22
-66
lines changed

templates/NOTES.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Congratulations! You have just deployed StackStorm {{ if .Values.enterprise.enabled }}Enterprise {{ end }}HA!
1+
Congratulations! You have just deployed StackStorm HA!
22

33
███████╗████████╗██████╗ ██╗ ██╗ █████╗ ██████╗ ██╗ ██╗
44
██╔════╝╚══██╔══╝╚════██╗ ██║ ██║██╔══██╗ ██╔═══██╗██║ ██╔╝
@@ -11,20 +11,20 @@ Congratulations! You have just deployed StackStorm {{ if .Values.enterprise.enab
1111
{{- if contains "LoadBalancer" .Values.st2web.service.type }}
1212

1313
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
14-
Watch the status with "kubectl get service {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'"
14+
Watch the status with "kubectl get service {{ .Release.Name }}-st2web -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'"
1515

16-
export ST2WEB_IP=$(kubectl get service {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
16+
export ST2WEB_IP=$(kubectl get service {{ .Release.Name }}-st2web -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
1717
echo https://${ST2WEB_IP}/
1818

1919
{{- else if contains "ClusterIP" .Values.st2web.service.type }}
2020

2121
echo http://127.0.0.1:8080
22-
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }} 8080:80
22+
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ .Release.Name }}-st2web 8080:80
2323

2424
{{- else if contains "NodePort" .Values.st2web.service.type }}
2525

2626
export ST2WEB_IP=$(minikube ip 2>/dev/null || kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
27-
export ST2WEB_PORT="$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }})"
27+
export ST2WEB_PORT="$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ .Release.Name }}-st2web)"
2828
echo http://${ST2WEB_IP}:${ST2WEB_PORT}/
2929

3030
{{- end }}

templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: networking.k8s.io/v1beta1
44
kind: Ingress
55
metadata:
6-
name: {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }}-ingress
6+
name: {{ .Release.Name }}-st2web-ingress
77
labels:
88
app: ingress
99
tier: frontend
@@ -39,7 +39,7 @@ spec:
3939
paths:
4040
- path: "/"
4141
backend:
42-
serviceName: {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }}
42+
serviceName: {{ .Release.Name }}-st2web
4343
servicePort: 80
4444
{{- end }}
4545
{{- if .Values.ingress.tls }}

templates/jobs.yaml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{ if .Values.enterprise.enabled }}
21
---
32
apiVersion: batch/v1
43
kind: Job
@@ -8,7 +7,7 @@ metadata:
87
app: st2-apply-rbac-definitions
98
tier: backend
109
vendor: stackstorm
11-
support: enterprise
10+
support: {{ template "supportMethod" . }}
1211
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
1312
release: {{ .Release.Name }}
1413
heritage: {{ .Release.Service }}
@@ -24,7 +23,7 @@ spec:
2423
app: st2-apply-rbac-definitions
2524
tier: backend
2625
vendor: stackstorm
27-
support: enterprise
26+
support: {{ template "supportMethod" . }}
2827
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
2928
release: {{ .Release.Name }}
3029
heritage: {{ .Release.Service }}
@@ -40,7 +39,7 @@ spec:
4039
{{- end }}
4140
containers:
4241
- name: st2-apply-rbac-definitions
43-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
42+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
4443
imagePullPolicy: {{ .Values.image.pullPolicy }}
4544
command:
4645
- st2-apply-rbac-definitions
@@ -77,7 +76,6 @@ spec:
7776
configMap:
7877
name: {{ .Release.Name }}-st2-rbac-mappings
7978
restartPolicy: OnFailure
80-
{{ end }}
8179

8280
---
8381
apiVersion: batch/v1
@@ -114,9 +112,6 @@ spec:
114112
checksum/apikeys: {{ include (print $.Template.BasePath "/secrets_st2apikeys.yaml") . | sha256sum }}
115113
spec:
116114
imagePullSecrets:
117-
{{- if .Values.enterprise.enabled }}
118-
- name: {{ .Release.Name }}-st2-license
119-
{{- end }}
120115
{{- if .Values.image.pullSecret }}
121116
- name: {{ .Values.image.pullSecret }}
122117
{{- end }}
@@ -133,7 +128,7 @@ spec:
133128
done
134129
# Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container
135130
- name: generate-st2client-config
136-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
131+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
137132
imagePullPolicy: {{ .Values.image.pullPolicy }}
138133
envFrom:
139134
- configMapRef:
@@ -164,7 +159,7 @@ spec:
164159
EOT
165160
containers:
166161
- name: st2-apikey-load
167-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
162+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
168163
imagePullPolicy: {{ .Values.image.pullPolicy }}
169164
command:
170165
- st2
@@ -226,17 +221,14 @@ spec:
226221
checksum/urls: {{ include (print $.Template.BasePath "/configmaps_st2-urls.yaml") . | sha256sum }}
227222
spec:
228223
imagePullSecrets:
229-
{{- if .Values.enterprise.enabled }}
230-
- name: {{ .Release.Name }}-st2-license
231-
{{- end }}
232224
{{- if .Values.image.pullSecret }}
233225
- name: {{ .Values.image.pullSecret }}
234226
{{- end }}
235227
initContainers:
236228
{{ include "init-containers-wait-for-db" . | indent 6 }}
237229
# Sidecar container for generating st2client config with st2 username & password pair and sharing produced file with the main container
238230
- name: generate-st2client-config
239-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
231+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
240232
imagePullPolicy: {{ .Values.image.pullPolicy }}
241233
envFrom:
242234
- configMapRef:
@@ -267,7 +259,7 @@ spec:
267259
EOT
268260
containers:
269261
- name: st2-key-load
270-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
262+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
271263
imagePullPolicy: {{ .Values.image.pullPolicy }}
272264
command:
273265
- st2
@@ -338,9 +330,6 @@ spec:
338330
checksum/packs: {{ include (print $.Template.BasePath "/configmaps_packs.yaml") . | sha256sum }}
339331
spec:
340332
imagePullSecrets:
341-
{{- if .Values.enterprise.enabled }}
342-
- name: {{ .Release.Name }}-st2-license
343-
{{- end }}
344333
{{- if .Values.st2.packs.image.pullSecret }}
345334
- name: {{ .Values.st2.packs.image.pullSecret }}
346335
{{- end }}
@@ -368,7 +357,7 @@ spec:
368357
/bin/cp -aR /opt/stackstorm/virtualenvs/. /opt/stackstorm/virtualenvs-shared
369358
# System packs
370359
- name: st2-system-packs
371-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
360+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
372361
imagePullPolicy: {{ .Values.image.pullPolicy }}
373362
volumeMounts:
374363
- name: st2-packs-vol
@@ -382,7 +371,7 @@ spec:
382371
{{ end }}
383372
containers:
384373
- name: st2-register-content
385-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
374+
image: "{{ template "imageRepository" . }}/st2actionrunner:{{ .Chart.AppVersion }}"
386375
imagePullPolicy: {{ .Values.image.pullPolicy }}
387376
command:
388377
- st2-register-content

templates/secrets_st2license.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

templates/services.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
kind: Service
33
apiVersion: v1
44
metadata:
5-
name: {{ .Release.Name }}-st2auth{{ template "enterpriseSuffix" . }}
5+
name: {{ .Release.Name }}-st2auth
66
annotations:
77
description: StackStorm st2auth - all authentication is managed by this service.
88
labels:
@@ -27,7 +27,7 @@ spec:
2727
kind: Service
2828
apiVersion: v1
2929
metadata:
30-
name: {{ .Release.Name }}-st2api{{ template "enterpriseSuffix" . }}
30+
name: {{ .Release.Name }}-st2api
3131
annotations:
3232
description: StackStorm st2api - service hosts the REST API endpoints that serve requests from WebUI, CLI, ChatOps and other st2 services.
3333
labels:
@@ -52,7 +52,7 @@ spec:
5252
kind: Service
5353
apiVersion: v1
5454
metadata:
55-
name: {{ .Release.Name }}-st2stream{{ template "enterpriseSuffix" . }}
55+
name: {{ .Release.Name }}-st2stream
5656
annotations:
5757
description: StackStorm st2stream - exposes a server-sent event stream, used by the clients like WebUI and ChatOps to receive update from the st2stream server.
5858
labels:
@@ -77,7 +77,7 @@ spec:
7777
kind: Service
7878
apiVersion: v1
7979
metadata:
80-
name: {{ .Release.Name }}-st2web{{ template "enterpriseSuffix" . }}
80+
name: {{ .Release.Name }}-st2web
8181
annotations:
8282
description: StackStorm st2web, - an admin Web UI and main entry point for external API requests
8383
{{- if .Values.st2web.service.hostname }}
@@ -114,7 +114,7 @@ spec:
114114
kind: Service
115115
apiVersion: v1
116116
metadata:
117-
name: {{ .Release.Name }}-st2chatops{{ template "enterpriseSuffix" . }}
117+
name: {{ .Release.Name }}-st2chatops
118118
annotations:
119119
description: StackStorm st2chatops, - conversation-driven automation service exposed as hubot instance with predefined list of chat adapters
120120
labels:

values.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
image:
88
# Image pull policy
99
pullPolicy: IfNotPresent
10-
# st2 image repository. Set this to override the default ("stackstorm") or enterprise
10+
# st2 image repository. Set this to override the default ("stackstorm")
1111
# docker image repository ("docker.stackstorm.com"). Applies to all st2 containers except
1212
# st2chatops and st2packs (which have their own override). This also does not impact
1313
# dependencies such as mongo or redis, which have their own helm chart settings.
@@ -17,17 +17,6 @@ image:
1717
# See: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1818
#pullSecret: "your-pull-secret"
1919

20-
21-
##
22-
## StackStorm Enterprise settings (Optional)
23-
##
24-
enterprise:
25-
# Enable/Disable StackStorm Enterprise. Enabling will download StackStorm Enterprise Docker images.
26-
enabled: false
27-
# Required StackStorm Enterprise license key.
28-
# Don't have one? Obtain 90-day free trial at https://stackstorm.com/#product
29-
license: ""
30-
3120
# StackStorm Role Based Access Control settings (https://docs.stackstorm.com/rbac.html)
3221
rbac:
3322
# Custom StackStorm RBAC roles, shipped in '/opt/stackstorm/rbac/roles/'

0 commit comments

Comments
 (0)