Commit 1d17c0cc authored by Humble Chirammal's avatar Humble Chirammal

Add more metadata about dynamically provisioned PVs using

PV annotation: This patch add below fields to Gluster dynamic pvs: "Description: "Gluster: dynamically provisioned PV" "Creator": "heketi-dynamic" "Type": "file" Signed-off-by: 's avatarHumble Chirammal <hchiramm@redhat.com>
parent 53258ba6
......@@ -696,7 +696,13 @@ func (r *glusterfsVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
}
gidStr := strconv.FormatInt(int64(gid), 10)
pv.Annotations = map[string]string{volumehelper.VolumeGidAnnotationKey: gidStr}
pv.Annotations = map[string]string{
volumehelper.VolumeGidAnnotationKey: gidStr,
"kubernetes.io/createdby": "heketi-dynamic-provisioner",
"gluster.org/type": "file",
"Description": "Gluster: Dynamically provisioned PV",
}
pv.Spec.Capacity = v1.ResourceList{
v1.ResourceName(v1.ResourceStorage): resource.MustParse(fmt.Sprintf("%dGi", sizeGB)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment