Skip to content

Commit

Permalink
Use provisioner name as the provisioner ID by default
Browse files Browse the repository at this point in the history
By default, external provisioners are using their name as the
provisioner ID.  Adopt this convention.

Signed-off-by: Adam Litke <alitke@redhat.com>
  • Loading branch information
aglitke committed Sep 19, 2017
1 parent fbf95b8 commit 84c0268
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openstack/standalone-cinder/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/kubernetes-incubator/external-storage/lib/controller"

"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/uuid"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -184,7 +183,7 @@ func main() {
} else {
config, err = rest.InClusterConfig()
}
prID := string(uuid.NewUUID())
prID := provisionerName
if *id != "" {
prID = *id
}
Expand Down

0 comments on commit 84c0268

Please sign in to comment.