rbd: set cluster Name as metadata on the image

This change helps read the cluster name from the cmdline args,
the provisioner will set the same on the RBD images.

Fixes: #2973
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever
2022-04-11 09:57:29 +05:30
committed by mergify[bot]
parent deb003e605
commit 2880c25fd6
8 changed files with 35 additions and 5 deletions

View File

@ -121,6 +121,9 @@ type Config struct {
// CSI-Addons endpoint
CSIAddonsEndpoint string
// Cluster name
ClusterName string
}
// ValidateDriverName validates the driver name.