Skip to content

Commit 2f3203b

Browse files
author
armab
committed
Cleanup the st2chatops diff
1 parent 11a25e9 commit 2f3203b

11 files changed

+50
-30
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
charts
22
*.lock
3+
.DS_Store

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
* Add st2packs, - a way to use custom st2 packs as a shareable Docker image via sidecar containers
4545

4646
## v0.4.0
47-
* Initial public version, referencing StackStorm Enterprise HA as a Helm chart
47+
* Initial public version, referencing StackStorm Enterprise HA as a Helm chart

Chart.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ details:
2525
This Helm chart is a fully installable app that codifies StackStorm cluster optimized for HA and K8s environment.
2626
By default FOSS community version of st2 will be installed. Enterprise version can be enabled as an option.
2727
For configuration details check 'values.yaml'.
28-

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,4 @@ kubectl logs -l release=<release-name>
230230
Grab all logs only for stackstorm backend services, excluding st2web and DB/MQ/etcd:
231231
```
232232
kubectl logs -l release=<release-name>,tier=backend
233-
```
233+
```

requirements.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ dependencies:
2020
condition: external-dns.enabled
2121
- name: etcd
2222
version: 0.6.2
23-
repository: https://kubernetes-charts-incubator.storage.googleapis.com/
23+
repository: https://kubernetes-charts-incubator.storage.googleapis.com/

templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ stackstorm
3131
# Generate '-' prefix only when the variable is defined
3232
{{- define "hyphenPrefix" -}}
3333
{{ if . }}-{{ . }}{{end}}
34-
{{- end -}}
34+
{{- end -}}

templates/configmaps_chatops.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ metadata:
1616
data:
1717
# see configmaps_st2-conf.yaml for indepth explanantion of mappings here.
1818

19-
{{ toYaml .Values.st2.chatops | indent 4 }}
19+
{{ toYaml .Values.st2.chatops | indent 4 }}

templates/deployments.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1380,4 +1380,4 @@ spec:
13801380
volumes:
13811381
- name: st2-chatops-vol
13821382
configMap:
1383-
name: {{ .Release.Name }}-st2chatops
1383+
name: {{ .Release.Name }}-st2chatops

templates/jobs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,4 +394,4 @@ spec:
394394
- name: st2-virtualenvs-vol
395395
emptyDir: {}
396396
{{- end }}
397-
restartPolicy: OnFailure
397+
restartPolicy: OnFailure

templates/secrets_st2apikeys.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: {{ .Release.Name }}-st2-apikeys
6+
annotations:
7+
description: A list of StackStorm API keys with metadata that will be imported into the system
8+
labels:
9+
app: st2
10+
tier: backend
11+
vendor: stackstorm
12+
support: {{ template "supportMethod" . }}
13+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
14+
release: "{{ .Release.Name }}"
15+
heritage: "{{ .Release.Service }}"
16+
type: Opaque
17+
data:
18+
apikeys.yaml: {{ toYaml .Values.st2.apikeys | b64enc | quote }}

values.yaml

+24-22
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,30 @@ st2garbagecollector:
355355
nodeSelector: {}
356356
tolerations: []
357357
affinity: {}
358+
##
359+
## StackStorm ChatOps (https://docs.stackstorm.com/chatops/index.html)
360+
## As hubot can't be HA scaled properly, we deploy only single replica of st2chatops
361+
##
362+
st2chatops:
363+
# Enable st2chatops (default: false)
364+
enabled: true
365+
# Custom hubot adapter ENV variables to pass through which will override st2chatops.env defaults.
366+
# See https://github.com/StackStorm/st2chatops/blob/master/st2chatops.env
367+
# for the full list of supported adapters and example ENV variables.
368+
env:
369+
HUBOT_ADAPTER: slack
370+
HUBOT_SLACK_TOKEN: xoxb-CHANGE-ME-PLEASE
371+
# Use custom generated st2chatops Docker image
372+
image:
373+
# repository: stackstorm
374+
# name: st2chatops
375+
# tag: {{ .Chart.AppVersion }}
376+
# pullPolicy: Always
377+
resources: {}
378+
# Additional advanced settings to control pod/deployment placement
379+
nodeSelector: {}
380+
tolerations: []
381+
affinity: {}
358382

359383
##
360384
## MongoDB HA configuration (3rd party chart dependency)
@@ -434,25 +458,3 @@ external-dns:
434458
aws:
435459
zoneType: "public"
436460
domainFilters: []
437-
# StackStorm ChatOps (https://docs.stackstorm.com/chatops/index.html)
438-
# As hubot can't be HA scaled properly, we deploy only single replica of st2chatops
439-
st2chatops:
440-
# Enable st2chatops (default: false)
441-
enabled: true
442-
# Custom hubot adapter ENV variables to pass through which will override st2chatops.env defaults.
443-
# See https://github.com/StackStorm/st2chatops/blob/master/st2chatops.env
444-
# for the full list of supported adapters and example ENV variables.
445-
env:
446-
HUBOT_ADAPTER: slack
447-
HUBOT_SLACK_TOKEN: xoxb-CHANGE-ME-PLEASE
448-
# Use custom generated st2chatops Docker image
449-
image:
450-
# repository: stackstorm
451-
# name: st2chatops
452-
# tag: {{ .Chart.AppVersion }}
453-
# pullPolicy: Always
454-
resources: {}
455-
# Additional advanced settings to control pod/deployment placement
456-
nodeSelector: {}
457-
tolerations: []
458-
affinity: {}

0 commit comments

Comments
 (0)