kubernetes-csi/external-provisioner

Document ${pvc.name}, ${pvc.namespace}, ${pv.name} and ${pvc.annotations['...']}

Closed this issue · 1 comments

Is your feature request related to a problem?/Why is this needed

I found those replacements by chance. Documenting them would help others.

Describe the solution you'd like in detail

Documentation of those available expansions, and where they can be used.

Describe alternatives you've considered

Currently, it's only somewhat documented in changelog:

- Default StorageClass secrets are added:
- csi.storage.k8s.io/secret-name: ${pvc.name}
- csi.storage.k8s.io/secret-namespace: ${pvc.namespace}

- Added support for PVC annotations in `csi.storage.k8s.io/provisioner-secret-name` StorageClass parameters. For example: `csi.storage.k8s.io/provisioner-secret-name: ${pvc.annotations['xyz']}`. ([#1196](https://github.com/kubernetes-csi/external-provisioner/pull/1196), [@hoyho](https://github.com/hoyho))

Additional context