Skip to content

Commit 6a2631f

Browse files
authored
Merge pull request #127 from rrahman-nv/master
Added toggling of etcd-operator as a coordination backend
2 parents 273bdfb + a14b00e commit 6a2631f

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## In Development
4+
* Added support to toggle etcd-operator as a coordination backend (#127) (by @rrahman-nv)
45

56
## v0.26.0
67
* Added custom annotations to sensorcontainer and actionrunner Pods (#123) (by @stefangusa)

requirements.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ dependencies:
1515
- name: etcd-operator
1616
version: 0.10.0
1717
repository: https://kubernetes-charts.storage.googleapis.com/
18+
condition: etcd-operator.enabled
19+

templates/configmaps_st2-conf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ data:
2020
st2.docker.conf: |
2121
[auth]
2222
api_url = http://{{ .Release.Name }}-st2api{{ template "enterpriseSuffix" . }}:9101/
23+
{{- if index .Values "etcd-operator" "enabled" }}
2324
[coordination]
2425
url = etcd://{{ index .Values "etcd-operator" "etcdCluster" "name" }}-client:2379
26+
{{- end }}
2527
{{- if index .Values "rabbitmq-ha" "enabled" }}
2628
[messaging]
2729
url = amqp://{{ required "rabbitmq-ha.rabbitmqUsername is required!" (index .Values "rabbitmq-ha" "rabbitmqUsername") }}:{{ required "rabbitmq-ha.rabbitmqPassword is required!" (index .Values "rabbitmq-ha" "rabbitmqPassword") }}@{{ .Release.Name }}-rabbitmq-ha-discovery:5672

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,9 @@ rabbitmq-ha:
470470
##
471471
etcd-operator:
472472
# we don't need backup & restore etcd for short-lived coordination operations
473+
# Change to `false` to disable in-cluster ectd deployment.
474+
# Specify your external [coordination] connection parameters under st2.config
475+
enabled: true
473476
deployments:
474477
backupOperator: false
475478
restoreOperator: false

0 commit comments

Comments
 (0)