Skip to content

Commit

Permalink
ui: add hostPath volume mounts
Browse files Browse the repository at this point in the history
.Values.hostPathMounts can now be used to mount directories from pod host machine. For example, this can be used for mounting certificates and CRLs onto the pods
  • Loading branch information
maany committed Jun 26, 2024
1 parent 5e51d31 commit 3e4ec09
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/rucio-ui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rucio-ui
version: 34.0.3
version: 34.0.4
apiVersion: v1
description: A Helm chart to deploy webui servers for Rucio
keywords:
Expand Down
10 changes: 10 additions & 0 deletions charts/rucio-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ spec:
persistentVolumeClaim:
claimName: {{ $val.name }}
{{- end}}
{{- range $collection := tuple .Values.hostPathMounts }}
{{- range $key, $val := $collection }}
- name: {{ $val.volumeName | default (printf "a%s" ($val.mountPath | sha1sum)) }}
hostPath:
{{- if $val.type }}
type: {{ $val.type }}
{{- end}}
path: {{ $val.hostPath }}
{{- end}}
{{- end}}
containers:
{{- if .Values.exposeErrorLogs }}
- name: httpd-error-log
Expand Down
6 changes: 6 additions & 0 deletions charts/rucio-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ secretMounts:
# mountPath: /opt/rucio/etc/gcs_rucio.json
# subPath: gcs_rucio.json

# hostPathMounts: []
# - volumeName: igtf-ca
# hostPath: /etc/grid-security/certificates/
# mountPath: /etc/grid-security/certificates/
# readOnly: true
# type: DirectoryOrCreate
## values used to configure apache
httpd_config:
legacy_dn: "False"
Expand Down

0 comments on commit 3e4ec09

Please sign in to comment.