Skip to content

Commit cf7ac7b

Browse files
committed
fix preRegisterContentCommand mounts
1 parent dbcd54d commit cf7ac7b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## In Development
44
* Temporary workaround for #311 to use previous bitnami index from: https://github.com/bitnami/charts/issues/10539 (#312 #318) (by @0xhaven)
55
* Refactor label definitions to be more consistent by building labels and label selectors in partial helper templates. (#299) (by @cognifloyd)
6-
* Use the correct `apiVersion` for `Ingress` to add support for Kubernetes `v1.22`. (by @arms11)
6+
* Use the correct `apiVersion` for `Ingress` to add support for Kubernetes `v1.22`. (#301) (by @arms11)
7+
* Fix mounts for `jobs.preRegisterContentCommand` container to use the same mounts as the primary register-content container. (#322) (by @cognifloyd)
78

89
## v0.100.0
910
* Switch st2 to `v3.7` as a new default stable version (#274)

templates/jobs.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,10 @@ spec:
394394
{{- end }}
395395
command: {{- toYaml $.Values.jobs.preRegisterContentCommand | nindent 8 }}
396396
volumeMounts:
397+
{{- include "stackstorm-ha.overrides-config-mounts" . | nindent 8 }}
397398
{{- include "stackstorm-ha.st2-config-volume-mounts" . | nindent 8 }}
398-
- name: st2-pack-configs-vol
399-
mountPath: /opt/stackstorm/configs/
400-
{{- if .Values.st2.packs.images }}
401-
- name: st2-packs-vol
402-
mountPath: /opt/stackstorm/packs/
403-
- name: st2-virtualenvs-vol
404-
mountPath: /opt/stackstorm/virtualenvs/
405-
{{- end }}
399+
{{- include "stackstorm-ha.pack-configs-volume-mount" . | nindent 8 }}
400+
{{- include "stackstorm-ha.packs-volume-mounts-for-register-job" . | nindent 8 }}
406401
{{ end }}
407402
containers:
408403
- name: st2-register-content

0 commit comments

Comments
 (0)