remove volume_path from claim's label

This commit is contained in:
凡羊羊 2019-12-12 17:52:45 +08:00
parent 23425b1af8
commit f0306df2cf

View File

@ -39,7 +39,7 @@ func (v *OtherVolume) CreateVolume(define *Define) error {
volumeMountName := fmt.Sprintf("manual%d", v.svm.ID) volumeMountName := fmt.Sprintf("manual%d", v.svm.ID)
volumeMountPath := v.svm.VolumePath volumeMountPath := v.svm.VolumePath
volumeReadOnly := v.svm.IsReadOnly volumeReadOnly := v.svm.IsReadOnly
labels := v.as.GetCommonLabels(map[string]string{"volume_name": v.svm.VolumeName, "version": v.as.DeployVersion, "reclaim_policy": v.svm.ReclaimPolicy, "volume_path": volumeMountPath}) labels := v.as.GetCommonLabels(map[string]string{"volume_name": v.svm.VolumeName, "version": v.as.DeployVersion, "reclaim_policy": v.svm.ReclaimPolicy})
annotations := map[string]string{"volume_name": v.svm.VolumeName} annotations := map[string]string{"volume_name": v.svm.VolumeName}
// annotations["reclaim_policy"] = v.svm.ReclaimPolicy // annotations["reclaim_policy"] = v.svm.ReclaimPolicy
// annotations["volume_path"] = volumeMountPath // annotations["volume_path"] = volumeMountPath