Skip to content

Commit 3fe9592

Browse files
committed
initial commit to support custom st2action runner images via values.yaml
1 parent 2ef610a commit 3fe9592

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

templates/deployments.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,8 +1079,8 @@ spec:
10791079
{{- end }}
10801080
containers:
10811081
- name: st2actionrunner{{ template "enterpriseSuffix" . }}
1082-
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
1083-
imagePullPolicy: {{ .Values.image.pullPolicy }}
1082+
image: "{{ .Values.st2actionrunner.image.repository | default template "imageRepository" . }}/{{ .Values.st2actionrunner.image.name | default st2actionrunner }}{{ template "enterpriseSuffix" . }}:{{ .Values.st2actionrunner.image.tag | default .Chart.AppVersion }}"
1083+
imagePullPolicy: {{ .Values.st2actionrunner.image.imagePullPolicy | default .Values.image.pullPolicy }}
10841084
# TODO: Add liveness/readiness probes (#3)
10851085
#livenessProbe:
10861086
#readinessProbe:

values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,14 @@ st2notifier:
350350
st2actionrunner:
351351
replicas: 5
352352
# TODO: Find out recommended/default resources for this specific service (#5)
353+
image:
354+
# Uncomment the following block to use your own at2actionrunner docker image
355+
#repository: your-remote-docker-registry.io
356+
#name: st2actionrunner
357+
#tag: latest
358+
#pullPolicy: Always
359+
# Optional name of the imagePullSecret if your custom action runner image is hosted by a private Docker registry behind the auth
360+
#pullSecret: st2actionrunner-auth
353361
resources: {}
354362
annotations: {}
355363
# Additional advanced settings to control pod/deployment placement

0 commit comments

Comments
 (0)