Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #655 from humblec/file-refactor-1
Browse files Browse the repository at this point in the history
Change provisioner variable name.
  • Loading branch information
childsb authored Mar 12, 2018
2 parents 97b9779 + 57413d9 commit 06f19d7
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ func (p *glusterfileProvisioner) ExpandVolumeDevice(spec *volume.Spec, newSize r
expansionSizeGiB := int(util.RoundUpToGiB(expansionSize))

// Find out requested Size
//requestGiB := util.RoundUpToGiB(newSize)
requestGiB := int(util.RoundUpToGiB(newSize.Value()))

//Check the existing volume size
Expand Down Expand Up @@ -509,6 +508,7 @@ func (p *glusterfileProvisioner) Delete(volume *v1.PersistentVolume) error {
return nil

}

func (p *glusterfileProvisioner) deleteEndpointService(namespace string, epServiceName string) (err error) {
kubeClient := p.client
if kubeClient == nil {
Expand Down Expand Up @@ -730,16 +730,16 @@ func main() {
glog.Fatalf("Failed to create config: %v", err)
}

prName := provisionerName
provName := os.Getenv(provisionerNameKey)
provName := provisionerName
provEnvName := os.Getenv(provisionerNameKey)

// Precedence is given for ProvisionerNameKey
if provName != "" && *id != "" {
prName = provName
if provEnvName != "" && *id != "" {
provName = provEnvName
}

if provName == "" && *id != "" {
prName = *id
if provEnvName == "" && *id != "" {
provName = *id
}

clientset, err := kubernetes.NewForConfig(config)
Expand All @@ -756,14 +756,14 @@ func main() {

// Create the provisioner: it implements the Provisioner interface expected by
// the controller
glusterfileProvisioner := NewglusterfileProvisioner(clientset, prName)
glusterfileProvisioner := NewglusterfileProvisioner(clientset, provName)

// Start the provision controller which will dynamically provision glusterfs
// PVs

pc := controller.NewProvisionController(
clientset,
prName,
provName,
glusterfileProvisioner,
serverVersion.GitVersion,
)
Expand Down

0 comments on commit 06f19d7

Please sign in to comment.