mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Add Namespace to glusterfs custom volume names.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
@@ -765,7 +765,7 @@ func (p *glusterfsVolumeProvisioner) CreateVolume(gid int) (r *v1.GlusterfsVolum
|
|||||||
}
|
}
|
||||||
|
|
||||||
if p.provisionerConfig.volumeNamePrefix != "" {
|
if p.provisionerConfig.volumeNamePrefix != "" {
|
||||||
customVolumeName = fmt.Sprintf("%s_%s_%s", p.provisionerConfig.volumeNamePrefix, p.options.PVC.Name, uuid.NewUUID())
|
customVolumeName = fmt.Sprintf("%s_%s_%s_%s", p.provisionerConfig.volumeNamePrefix, p.options.PVC.Namespace, p.options.PVC.Name, uuid.NewUUID())
|
||||||
}
|
}
|
||||||
|
|
||||||
gid64 := int64(gid)
|
gid64 := int64(gid)
|
||||||
|
Reference in New Issue
Block a user