[REV] change provisioner controller name

This commit is contained in:
barnett 2018-12-01 11:25:12 +08:00
parent fd460dcb40
commit f44543c00d
4 changed files with 3 additions and 4 deletions

View File

@ -55,7 +55,7 @@ func init() {
ObjectMeta: metav1.ObjectMeta{
Name: RainbondStatefuleLocalStorageClass,
},
Provisioner: "rainbond.io/provisioner-slsc",
Provisioner: "rainbond.io/provisioner-sslc",
VolumeBindingMode: &volumeBindingImmediate,
ReclaimPolicy: &Retain,
})

View File

@ -745,7 +745,6 @@ func (ctrl *ProvisionController) shouldProvision(claim *v1.PersistentVolumeClaim
if claim.Spec.VolumeName != "" {
return false
}
logrus.Infof("should provision for claim %s", claim.Name)
// Kubernetes 1.5 provisioning with annStorageProvisioner
if ctrl.kubeVersion.AtLeast(utilversion.MustParseSemantic("v1.5.0")) {
if provisioner, found := claim.Annotations[annStorageProvisioner]; found {

View File

@ -178,7 +178,7 @@ func (p *rainbondsslcProvisioner) Provision(options controller.VolumeOptions) (*
},
},
}
logrus.Infof("create rainbondssc pv %s for pvc %s", pv.Name, options.PVC.Name)
logrus.Infof("create rainbondsslc pv %s for pvc %s", pv.Name, options.PVC.Name)
return pv, nil
}

View File

@ -75,7 +75,7 @@ func (p *rainbondssscProvisioner) Provision(options controller.VolumeOptions) (*
},
},
}
logrus.Infof("create rainbondssc pv %s for pvc %s", pv.Name, options.PVC.Name)
logrus.Infof("create rainbondsssc pv %s for pvc %s", pv.Name, options.PVC.Name)
return pv, nil
}