@@ -41,7 +41,6 @@ import (
41
41
"k8s.io/client-go/tools/record"
42
42
ref "k8s.io/client-go/tools/reference"
43
43
"k8s.io/client-go/util/workqueue"
44
- cloudprovider "k8s.io/cloud-provider"
45
44
volerr "k8s.io/cloud-provider/volume/errors"
46
45
storagehelpers "k8s.io/component-helpers/storage/volume"
47
46
"k8s.io/kubernetes/pkg/controller/volume/common"
@@ -119,18 +118,6 @@ import (
119
118
// claims at the same time. The controller must recover from any conflicts
120
119
// that may arise from these conditions.
121
120
122
- // CloudVolumeCreatedForClaimNamespaceTag is a name of a tag attached to a real volume in cloud (e.g. AWS EBS or GCE PD)
123
- // with namespace of a persistent volume claim used to create this volume.
124
- const CloudVolumeCreatedForClaimNamespaceTag = "kubernetes.io/created-for/pvc/namespace"
125
-
126
- // CloudVolumeCreatedForClaimNameTag is a name of a tag attached to a real volume in cloud (e.g. AWS EBS or GCE PD)
127
- // with name of a persistent volume claim used to create this volume.
128
- const CloudVolumeCreatedForClaimNameTag = "kubernetes.io/created-for/pvc/name"
129
-
130
- // CloudVolumeCreatedForVolumeNameTag is a name of a tag attached to a real volume in cloud (e.g. AWS EBS or GCE PD)
131
- // with name of appropriate Kubernetes persistent volume .
132
- const CloudVolumeCreatedForVolumeNameTag = "kubernetes.io/created-for/pv/name"
133
-
134
121
// Number of retries when we create a PV object for a provisioned volume.
135
122
const createProvisionedPVRetryCount = 5
136
123
@@ -167,7 +154,6 @@ type PersistentVolumeController struct {
167
154
kubeClient clientset.Interface
168
155
eventBroadcaster record.EventBroadcaster
169
156
eventRecorder record.EventRecorder
170
- cloud cloudprovider.Interface
171
157
volumePluginMgr vol.VolumePluginMgr
172
158
enableDynamicProvisioning bool
173
159
clusterName string
@@ -1653,16 +1639,9 @@ func (ctrl *PersistentVolumeController) provisionClaimOperation(
1653
1639
return pluginName , err
1654
1640
}
1655
1641
1656
- // Gather provisioning options
1657
- tags := make (map [string ]string )
1658
- tags [CloudVolumeCreatedForClaimNamespaceTag ] = claim .Namespace
1659
- tags [CloudVolumeCreatedForClaimNameTag ] = claim .Name
1660
- tags [CloudVolumeCreatedForVolumeNameTag ] = pvName
1661
-
1662
1642
options := vol.VolumeOptions {
1663
1643
PersistentVolumeReclaimPolicy : * storageClass .ReclaimPolicy ,
1664
1644
MountOptions : storageClass .MountOptions ,
1665
- CloudTags : & tags ,
1666
1645
ClusterName : ctrl .clusterName ,
1667
1646
PVName : pvName ,
1668
1647
PVC : claim ,
0 commit comments