From f0306df2cfc30eb84da3a84f448c5066f7070455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E7=BE=8A=E7=BE=8A?= Date: Thu, 12 Dec 2019 17:52:45 +0800 Subject: [PATCH] remove volume_path from claim's label --- worker/appm/volume/other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/appm/volume/other.go b/worker/appm/volume/other.go index 53c665c6f..42c48807c 100644 --- a/worker/appm/volume/other.go +++ b/worker/appm/volume/other.go @@ -39,7 +39,7 @@ func (v *OtherVolume) CreateVolume(define *Define) error { volumeMountName := fmt.Sprintf("manual%d", v.svm.ID) volumeMountPath := v.svm.VolumePath 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["reclaim_policy"] = v.svm.ReclaimPolicy // annotations["volume_path"] = volumeMountPath