Improve event msg for PV controller when using external provisioner

Improve event msg for PV controller when using external provisioner
This commit is contained in:
Xing Zhou
2017-03-27 10:50:17 +08:00
parent 643355356e
commit 5b29afb1ad

View File

@@ -1277,7 +1277,7 @@ func (ctrl *PersistentVolumeController) provisionClaimOperation(claimObj interfa
// This means that an unknown provisioner is requested. Report an event
// and wait for the external provisioner
if storageClass != nil {
msg := fmt.Sprintf("cannot find provisioner %q, expecting that a volume for the claim is provisioned either manually or via external software", storageClass.Provisioner)
msg := fmt.Sprintf("waiting for a volume to be created, either by external provisioner %q or manually created by system administrator", storageClass.Provisioner)
ctrl.eventRecorder.Event(claim, v1.EventTypeNormal, "ExternalProvisioning", msg)
glog.V(3).Infof("provisioning claim %q: %s", claimToClaimKey(claim), msg)
} else {