Skip to content

Commit

Permalink
Merge pull request #498 from NilsKrattinger/imrpove_cvmfs_fix_configu…
Browse files Browse the repository at this point in the history
…rability

Make CVMFS fix configurable
  • Loading branch information
nuwang committed Aug 13, 2024
2 parents 59145bf + 8723418 commit b2d7627
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ current default values can be found in `values.yaml` file.
| `cvmfs.deploy` | Deploy the Galaxy-CVMFS-CSI Helm Chart. This is an optional dependency, and for production scenarios it should be deployed separately as a cluster-wide resource |
| `cvmfs.enabled` | Enable use of CVMFS in configs, and deployment of CVMFS Persistent Volume Claims for Galaxy |
| `cvmfs.pvc.{}` | Persistent Volume Claim to deploy for CVMFS repositories. See <a href="galaxy/values.yaml">`values.yaml`</a> for examples. |
| `cvmfs.deployPostInstallFix` |Deploy the fix for Galaxy-CVMFS-CSI Helm Chart. |
| `setupJob.ttlSecondsAfterFinished` | Sets `ttlSecondsAfterFinished` for the initialization jobs. See the [Kubernetes documentation](https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/#ttl-controller) for more details. |
| `setupJob.downloadToolConfs.enabled` | Download configuration files and the `tools` directory from an archive via a job at startup |
| `setupJob.downloadToolConfs.archives.startup` | A URL to a `tar.gz` publicly accessible archive containing AT LEAST conf files and XML tool wrappers. Meant to be enough for Galaxy handlers to startup. |
Expand Down
1 change: 1 addition & 0 deletions VALUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
| refdata.type | `s3fs` or `cvmfs`, determines the CSI to use for mounting reference data. `cvmfs` is the default and recommended for the time being. |
| cvmfs | Configuration block if `cvmfs` is used as `refdata.type` |
| cvmfs.deploy | Deploy the Galaxy-CVMFS-CSI Helm Chart. This is an optional dependency, and for production scenarios it should be deployed separately as a cluster-wide resource |
| cvmfs.deployPostInstallFix| Deploy the fix for Galaxy-CVMFS-CSI Helm Chart. |
| s3csi | Configuration block if `s3csi` is used as the `refdata.type` |
| s3csi.deploy | Deploy the CSI-S3 Helm Chart. This is an optional dependency, and for production scenarios it should be deployed separately as a cluster-wide resource. |
| useSecretConfigs | When this flag is set to true, all configs will be set in secrets, when it is set to false, all configs will be set in configmaps |
Expand Down
2 changes: 2 additions & 0 deletions galaxy/templates/configmap-cvmfs-fix.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if and .Values.cvmfs.deployPostInstallFix .Values.refdata.enabled (eq .Values.refdata.type "cvmfs") }}
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -17,3 +18,4 @@ data:
echo "Deleting nodeplugin pods..."
kubectl get pods -n {{ .Release.Namespace }} -l 'app=cvmfscsi' -l 'component=nodeplugin' -o name | xargs kubectl -n {{ .Release.Namespace }} delete && \
echo "Deleted nodeplugin pods."
{{- end }}
3 changes: 1 addition & 2 deletions galaxy/templates/hook-cvmfs-fix.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.refdata.enabled (eq .Values.refdata.type "cvmfs") }}
{{- if and .Values.cvmfs.deployPostInstallFix .Values.refdata.enabled (eq .Values.refdata.type "cvmfs") }}
---
# Include the code you want to run when both conditions are met
apiVersion: batch/v1
Expand Down Expand Up @@ -37,4 +37,3 @@ spec:
configMap:
name: "{{ .Release.Name }}-configmap-cvmfs-fix"
{{- end }}

2 changes: 2 additions & 0 deletions galaxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ refdata:
cvmfs:
#- Deploy the Galaxy-CVMFS-CSI Helm Chart. This is an optional dependency, and for production scenarios it should be deployed separately as a cluster-wide resource
deploy: true
#- Deploy the CVMF post install fix,
deployPostInstallFix: true
storageClassName: "{{ $.Release.Name }}-cvmfs"
cvmfscsi:
cache:
Expand Down

0 comments on commit b2d7627

Please sign in to comment.