Skip to content

Commit 7113533

Browse files
committed
put api_key under .Values.st2chatops instead of .Values.secrets
1 parent b927e4b commit 7113533

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

templates/deployments.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ spec:
13771377
image: '{{ .Values.st2chatops.image.repository | default "stackstorm" }}/{{ .Values.st2chatops.image.name | default "st2chatops" }}:{{ tpl (.Values.st2chatops.image.tag | default .Chart.AppVersion) . }}'
13781378
imagePullPolicy: {{ .Values.st2chatops.image.pullPolicy | default .Values.image.pullPolicy }}
13791379
env:
1380-
{{- if index .Values.st2chatops "use_api_key" }}
1380+
{{- if index .Values.st2chatops "api_key" }}
13811381
- name: ST2_API_KEY
13821382
valueFrom:
13831383
secretKeyRef:

templates/secrets_st2auth.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ data:
1818
username: {{ required "A valid secret 'st2.username' is required for StackStorm auth!" .Values.secrets.st2.username | b64enc | quote }}
1919
# Password, used to login to StackStorm system (default: Ch@ngeMe)
2020
password: {{ required "A valid secret 'st2.password' is required for StackStorm auth!" .Values.secrets.st2.password | b64enc | quote }}
21-
{{- if index .Values.st2chatops "use_api_key" }}
21+
{{- if index .Values.st2chatops "api_key" }}
2222
# Optional api_key for chatops to use instead of username/password
23-
chatops_api_key: {{ required "A valid secret 'st2.chatops_api_key' is required for StackStorm Chatops auth!" .Values.secrets.st2.api_key | b64enc | quote }}
23+
chatops_api_key: {{ .Values.st2chatops.api_key | b64enc | quote }}
2424
{{- end }}

values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ st2chatops:
422422
env:
423423
HUBOT_ADAPTER: slack
424424
HUBOT_SLACK_TOKEN: xoxb-CHANGE-ME-PLEASE
425-
# If use_api_key is true, then use secrets.st2.api_key instead of username/password for chatops
426-
# to authenticate with StackStorm.
427-
use_api_key: false
425+
# If api_key is defined, then use this key instead of username/password for chatops to authenticate with StackStorm.
426+
# Please make sure that this key gets added to st2.apikeys above so that chatops can use this key.
427+
#api_key:
428428
# Set custom generated st2chatops Docker image source
429429
# Otherwise default https://hub.docker.com/r/stackstorm/st2chatops is used
430430
image: {}

0 commit comments

Comments
 (0)