Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions helm/blueapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ A Helm chart deploying a worker pod that runs Bluesky plans
| imagePullSecrets | list | `[]` | |
| ingress | object | `{"annotations":{},"className":"nginx","enabled":false,"hosts":[{"host":"example.diamond.ac.uk","paths":[{"path":"/","pathType":"Prefix"}]}],"tls":[]}` | Configuring and enabling an ingress allows blueapi to be served at a nicer address, e.g. ixx-blueapi.diamond.ac.uk |
| ingress.hosts[0] | object | `{"host":"example.diamond.ac.uk","paths":[{"path":"/","pathType":"Prefix"}]}` | Request a host from https://jira.diamond.ac.uk/servicedesk/customer/portal/2/create/91 of the form ixx-blueapi.diamond.ac.uk. Note: pathType: Prefix is required in Diamond's clusters |
| initContainer | object | `{"enabled":false,"persistentVolume":{"enabled":false,"existingClaimName":"","size":"1Gi"}}` | Configure the initContainer that checks out the scratch configuration repositories |
| initContainer | object | `{"enabled":false,"persistentVolume":{"customName":"","enabled":false,"existingClaimName":"","size":"1Gi"}}` | Configure the initContainer that checks out the scratch configuration repositories |
| initContainer.persistentVolume.customName | string | `""` | May be set to create or use a PVC named `ixx-blueapi-scratch-{customName}-a.b.c` |
| initContainer.persistentVolume.enabled | bool | `false` | Whether to use a persistent volume in the cluster or check out onto the mounted host filesystem If persistentVolume.enabled: False, mounts scratch.root as scratch.root in the container |
| initContainer.persistentVolume.existingClaimName | string | `""` | May be set to an existing persistent volume claim to re-use the volume, else a new one is created for each blueapi release |
| initContainer.persistentVolume.existingClaimName | string | `""` | Deprecated. May be set to an existing persistent volume claim to re-use the volume, else a new one is created for each blueapi release |
| initContainer.persistentVolume.size | string | `"1Gi"` | Size of persistent volume |
| initResources | object | `{}` | Override resources for init container. By default copies resources of main container. |
| livenessProbe | object | `{"failureThreshold":3,"httpGet":{"path":"/healthz","port":"http"},"periodSeconds":10}` | Liveness probe, if configured kubernetes will kill the pod and start a new one if failed consecutively. This is automatically disabled when in debug mode. |
Expand Down
2 changes: 2 additions & 0 deletions helm/blueapi/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ spec:
persistentVolumeClaim:
{{- if .Values.initContainer.persistentVolume.existingClaimName }}
claimName: {{ .Values.initContainer.persistentVolume.existingClaimName }}
{{- else if .Values.initContainer.persistentVolume.customName }}
claimName: {{ include "blueapi.fullname" . }}-scratch-{{ .Values.initContainer.persistentVolume.customName }}-{{ .Values.image.tag | default .Chart.AppVersion }}
{{- else }}
claimName: {{ include "blueapi.fullname" . }}-scratch-{{ .Values.image.tag | default .Chart.AppVersion }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions helm/blueapi/templates/volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
{{- if .Values.initContainer.persistentVolume.customName }}
name: {{ include "blueapi.fullname" . }}-scratch-{{ .Values.initContainer.persistentVolume.customName }}-{{ .Values.image.tag | default .Chart.AppVersion }}
{{- else }}
name: {{ include "blueapi.fullname" . }}-scratch-{{ .Values.image.tag | default .Chart.AppVersion }}
{{- end }}
annotations:
argocd.argoproj.io/sync-options: Prune=false,Delete=false
argocd.argoproj.io/compare-options: IgnoreExtraneous
Expand Down
6 changes: 5 additions & 1 deletion helm/blueapi/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,16 @@
"persistentVolume": {
"type": "object",
"properties": {
"customName": {
"description": "May be set to create or use a PVC named `ixx-blueapi-scratch-{customName}-a.b.c`",
"type": "string"
},
"enabled": {
"description": "Whether to use a persistent volume in the cluster or check out onto the mounted host filesystem If persistentVolume.enabled: False, mounts scratch.root as scratch.root in the container",
"type": "boolean"
},
"existingClaimName": {
"description": "May be set to an existing persistent volume claim to re-use the volume, else a new one is created for each blueapi release",
"description": "Deprecated. May be set to an existing persistent volume claim to re-use the volume, else a new one is created for each blueapi release",
"type": "string"
},
"size": {
Expand Down
4 changes: 3 additions & 1 deletion helm/blueapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ initContainer:
# -- Whether to use a persistent volume in the cluster or check out onto the mounted host filesystem
# If persistentVolume.enabled: False, mounts scratch.root as scratch.root in the container
enabled: false
# -- May be set to an existing persistent volume claim to re-use the volume, else a new one is created for each blueapi release
# -- Deprecated. May be set to an existing persistent volume claim to re-use the volume, else a new one is created for each blueapi release
existingClaimName: ""
# -- May be set to create or use a PVC named `ixx-blueapi-scratch-{customName}-a.b.c`
customName: ""
# -- Size of persistent volume
size: "1Gi"

Expand Down