Skip to content

Commit e4aaa44

Browse files
committed
provide option for alternate docker repository
1 parent 0edb14a commit e4aaa44

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- run:
3333
name: Helm Lint Check (Enterprise)
3434
command: helm lint --set enterprise.enabled=true --set enterprise.license=123asd456fake
35+
- run:
36+
name: Helm Lint Check (st2Repository)
37+
command: helm lint --set image.st2Repository="docker.example.com/st2modified"
3538
- run:
3639
name: Helm template
3740
command: |

templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ community
2323
{{- define "imageRepository" -}}
2424
{{- if required "Missing context '.Values.enterprise.enabled'!" .Values.enterprise.enabled -}}
2525
docker.stackstorm.com
26+
{{- else if .Values.image.st2Repository -}}
27+
{{ .Values.image.st2Repository }}
2628
{{- else -}}
2729
stackstorm
2830
{{- end -}}

values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
image:
88
# Image pull policy. Change to "IfNotPresent" when switching to stable images
99
pullPolicy: Always
10+
# st2 image repository. Set this to override the default ("stackstorm") or enterprise
11+
# docker image repository ("docker.stackstorm.com"). Applies to all st2 containers except
12+
# st2chatops and st2packs (which have their own override). This also does not impact
13+
# dependencies such as mongo or redis, which have their own helm chart settings.
14+
st2Repository: ""
15+
1016

1117
##
1218
## StackStorm Enterprise settings (Optional)

0 commit comments

Comments
 (0)