Comments (5)
Tried to add a custom configMap for define default.d files editing:
deployments/helm/cvmfs-csi/templates/_helpers.tpl
{{- define "cvmfs-csi.cm.default.d" -}}
{{ (index .Values.cvmfsConfig "default.d" "configMapName") | default (printf "%s-default-d" (include "cvmfs-csi.fullname" .)) }}
{{- end -}}
deployments/helm/cvmfs-csi/templates/cvmfs-config-configmap.yaml
{{- if (index .Values.cvmfsConfig "default.d" "create") }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "cvmfs-csi.cm.default.d" . }}
labels:
{{- include "cvmfs-csi.common.metaLabels" . | nindent 4 }}
data:
{{- range $path, $data := (index .Values.cvmfsConfig "default.d" "data") -}}
{{- $path | nindent 2 }}: |
{{- tpl $data $ | nindent 4 -}}
{{- end }}
{{- end }}
deployments/helm/cvmfs-csi/templates/nodeplugin-daemonset.yaml
{{- if (index .Values.cvmfsConfig "default.d" "use") }}
- name: cvmfs-config-default-d
mountPath: /etc/cvmfs/default.d
{{- end }}
deployments/helm/cvmfs-csi/values.yaml
default.d:
configMapName: cvmfs-csi-default-d
# Whether to use this ConfigMap in /etc/cvmfs/default.local.
use: true
# Whether to create default.local ConfigMap with data entries defined below.
# If not, and `use` is set to true, it is expected the ConfigMap is already present.
create: true
data:
90-cvmfs.conf: |
CVMFS_CONFIG_REPOSITORY=cvmfs-config.test.com
CVMFS_DEFAULT_DOMAIN=cvmfs.test.com
But obtaining:
$ helm install cvmfs . -f values.yaml
Error: INSTALLATION FAILED: DaemonSet.apps "cvmfs-cvmfs-csi-nodeplugin" is invalid: spec.template.spec.containers[1].volumeMounts[8].name: Not found: "cvmfs-config-default-d"
Any clue on that?
from cvmfs-csi.
Hi @jtorrex, thanks for reporting! Indeed this should be available. Would a separate volume mounted in /etc/cvmfs be ok? #54
from cvmfs-csi.
Hi @gman0, thanks for your reply and your work.
I'm currently mapping the configuration using configMaps and I find this mechanism enough simple and intuitive to "store" the proper configuration on the values.yml file, having also the capacity to track it easily on a control version such as Git/GH/GL, etc, and using it "transparently" on integrations without involving "existent" files on storage support to mount it later.
About the proposal on issue #54, If I can decide, I would probably choose to stay on configMaps but adding some others like /etc/cvmfs/defaul.d/*, for example. Anyway, I'm conscient that keeping this mechanism requires additional work on the code to add extra configMaps if required, modifying different files.
If you are considering the volume mount approach because is more flexible, please, go ahead, you probably have a better understanding of what is better to improve the usability of the plugin, the only point that I consider that is mandatory if you decide to change to this approach, is to have a good section docu/guide explaining on how to use it properly.
Thanks again for your work, if I can help you with whatever you consider, please don't hesitate on mentioning me.
Regards!
from cvmfs-csi.
Hi @jtorrex, you can check #56 if that would work for you. Thanks!
from cvmfs-csi.
Checked #56. For my particular use case, I think that we can close this issue as the new patch provides a better flexible way for mapping the desired configuration. Thanks for your work again @gman0.
from cvmfs-csi.
Related Issues (20)
- docs: add notes on how to get client logs
- Add mount reconciler for automount-runner HOT 3
- Changing chart repo to OCI registry.cern.ch/kubernetes/charts
- automount daemon unable to reconnect HOT 4
- FIX: HELM values file on master branch still points to the old "magnum" registry enpoint HOT 2
- Suggested fixes to kubernetes manifests HOT 4
- Running CVMFS CSI on macOS K8S node HOT 4
- CVMFS CSI tests HOT 1
- Performance drop using CVMFS through this plugin HOT 3
- Publish the Helm chart on a public registry HOT 1
- Helm chart is missing cvmfs-csi-config-d ConfigMap
- Requesting help debugging a default installation HOT 1
- Won't mount repositories HOT 18
- Unable to run Helm chart v2.2.0 on OpenShift
- Fails to access large directories HOT 3
- Fix container labels HOT 1
- CSIDriver `volumeLifecycleModes`? HOT 3
- resource limit recomendations
- prometheus metrics for cvmfs-csi?
- start using `app.kubernetes.io/` labels HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cvmfs-csi.