Skip to content

Commit

Permalink
helm changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Sep 11, 2024
1 parent 07c273f commit 00c8557
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
7 changes: 7 additions & 0 deletions helm/blueapi/templates/init-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "blueapi.fullname" . }}-initconfig
data:
initconfig.yaml: |-
{{- toYaml .Values.initContainer.scratch | nindent 4 }}
8 changes: 7 additions & 1 deletion helm/blueapi/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ spec:
sources:
- configMap:
name: {{ include "blueapi.fullname" . }}-config
- name: init-config
projected:
sources:
- configMap:
name: {{ include "blueapi.fullname" . }}-initconfig
{{- if .Values.scratchHostPath }}
- name: scratch-host
hostPath:
Expand All @@ -59,8 +64,9 @@ spec:
if [ $? -ne 0 ]; then echo 'Blueapi failed'; exit 1; fi;
echo "Exporting venv as artefact"
cp -r /venv/* /artefacts
volumeMounts:
- name: worker-config
- name: init-config
mountPath: "/config"
readOnly: true
- name: scratch-host
Expand Down
13 changes: 7 additions & 6 deletions helm/blueapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ worker:
passcode: guest
host: rabbitmq
port: 61613
# Uncomment this to enable the scratch directory
# scratch:
# root: /blueapi-plugins/scratch
# repositories: []
# - name: "dodal"
# remote_url: https://github.com/DiamondLightSource/dodal.git

initContainer:
scratch:
root: /blueapi-plugins/scratch
repositories: []
- name: "dodal"
remote_url: https://github.com/DiamondLightSource/dodal.git

# Mount path for scratch area from host machine, setting
# this effectively enables scratch area management
Expand Down

0 comments on commit 00c8557

Please sign in to comment.