mirror of https://github.com/k3s-io/k3s
Add Namespace to glusterfs custom volume names.
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>pull/6/head
parent
62616d79ad
commit
2c34b9cf77
|
@ -765,7 +765,7 @@ func (p *glusterfsVolumeProvisioner) CreateVolume(gid int) (r *v1.GlusterfsVolum
|
|||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue