mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 03:07:51 +08:00
[REV] change provisioner controller name
This commit is contained in:
parent
fd460dcb40
commit
f44543c00d
@ -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,
|
||||
})
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user