hpe-storage / truenas-csp

TrueNAS Container Storage Provider for HPE CSI Driver for Kubernetes
https://scod.hpedev.io
MIT License
65 stars 8 forks source link

Dynamically have provisioning parameters for pvc #54

Closed kingnarmer closed 4 months ago

kingnarmer commented 7 months ago

Make "extra-create-metadata" parameters available at the time pvc is created . Ex: Be able to dynamically add pvc namespace to description section.

something like

description: "PVC created on ${paramters.namespace}"

datamattsson commented 7 months ago

I'm getting a bit of Deja Vu here as I think I've mean to implement this somewhere. Either in the upstream CSI driver or the CSP. They way this would work is that you'll have access to {pvc} and {namespace} for the description field.

Like: description: "PVC created on {namespace}"

kingnarmer commented 7 months ago

@datamattsson Do you mean it should work now ? Like if I set the description on the Storage class to description: "PVC created on {namespace}" ?

datamattsson commented 7 months ago

I could not find any traces of it, but I'll add it to the next release.

datamattsson commented 4 months ago

This is now included in v2.4.2.

I forgot to document it and will include that in the next update. You can use {pv} {pvc} and {namespace} in the description now.

datamattsson commented 4 months ago

Updated docs.