Skip to content

Commit

Permalink
Don't process PVCs for in-tree volumes
Browse files Browse the repository at this point in the history
Request for provisioning of in-tree volume plugins that were migrated to
CSI will always have CSI driver name in annStorageProvisioner.
  • Loading branch information
jsafrane committed Sep 30, 2019
1 parent e17cc20 commit edff2d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,14 @@ func (p *csiProvisioner) SupportsBlock() bool {
return true
}

func (p *csiProvisioner) ShouldProvision(claim *v1.PersistentVolumeClaim) bool {
provisioner := claim.Annotations[annStorageProvisioner]
if provisioner == p.driverName {
return true
}
return false
}

//TODO use a unique volume handle from and to Id
func (p *csiProvisioner) volumeIdToHandle(id string) string {
return id
Expand Down

0 comments on commit edff2d6

Please sign in to comment.