mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Merge pull request #43679 from xingzhou/kube-42121
Automatic merge from submit-queue Improve event msg for PV controller when using external provisioner Improve event msg for PV controller when using external provisioner **Which issue this PR fixes** *: Fixed part of #42121 **Special notes for your reviewer**: @jsafrane, as many of our users are confused by the original message, can we fix the message first and then consider how to control the count of the events?
This commit is contained in:
commit
3572e5ca86
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user