Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ stackstorm
{{- end -}}
{{- end -}}

# Generate Docker image repository for st2actionrunner: Private 'docker.stackstorm.com' for Enterprise vs Public Docker Hub 'stackstorm' for FOSS version
{{- define "st2actionrunnerImageRepository" -}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For simplicity reasons, it would be easier to avoid custom template for st2actionrunner, if possible. I saw the previous version, wondering if that worked good?

{{- if required "Missing context '.Values.enterprise.enabled'!" .Values.enterprise.enabled -}}
docker.stackstorm.com
{{- else if .Values.image.repository -}}
{{ .Values.image.repository }}
{{- else if .Values.st2actionrunner.image.repository -}}
{{ .Values.st2actionrunner.image.repository }}
{{- else -}}
stackstorm
{{- end -}}
{{- end -}}

{{/*
Create the name of the stackstorm-ha service account to use
*/}}
Expand Down
7 changes: 5 additions & 2 deletions templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ spec:
{{- if .Values.st2.packs.image.pullSecret }}
- name: {{ .Values.st2.packs.image.pullSecret }}
{{- end }}
{{- if .Values.st2actionrunner.image.pullSecret }}
- name: {{ .Values.st2actionrunner.image.pullSecret }}
{{- end }}
{{- if .Values.st2.packs.image.repository }}
initContainers:
# Merge packs and virtualenvs from st2actionrunner with those from the st2.packs image
Expand Down Expand Up @@ -1079,8 +1082,8 @@ spec:
{{- end }}
containers:
- name: st2actionrunner{{ template "enterpriseSuffix" . }}
image: "{{ template "imageRepository" . }}/st2actionrunner{{ template "enterpriseSuffix" . }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
image: "{{ template "st2actionrunnerImageRepository" . }}/{{ .Values.st2actionrunner.image.name | default "st2actionrunner" }}{{ template "enterpriseSuffix" . }}:{{ .Values.st2actionrunner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.st2actionrunner.image.imagePullPolicy | default .Values.image.pullPolicy }}
# TODO: Add liveness/readiness probes (#3)
#livenessProbe:
#readinessProbe:
Expand Down
8 changes: 8 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,14 @@ st2notifier:
st2actionrunner:
replicas: 5
# TODO: Find out recommended/default resources for this specific service (#5)
image: {}
# Uncomment the following block to use your own at2actionrunner docker image
#repository: your-remote-docker-registry.io
#name: st2actionrunner
#tag: latest
#pullPolicy: Always
# Optional name of the imagePullSecret if your custom action runner image is hosted by a private Docker registry behind the auth
#pullSecret: st2actionrunner-auth
resources: {}
annotations: {}
# Additional advanced settings to control pod/deployment placement
Expand Down