Merge pull request #113450 from neogopher/pv-controller-fix-log-message

docs: Correct the log message for pv controller to make it more accurately descriptive
This commit is contained in:
Kubernetes Prow Robot 2022-11-01 19:59:19 -07:00 committed by GitHub
commit 114a54c098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -728,7 +728,7 @@ func (ctrl *PersistentVolumeController) syncVolume(ctx context.Context, volume *
// the user know. Don't overwrite existing Failed status!
if volume.Status.Phase != v1.VolumeReleased && volume.Status.Phase != v1.VolumeFailed {
// Also, log this only once:
klog.V(2).Infof("dynamically volume %q is released and it will be deleted", volume.Name)
klog.V(2).Infof("dynamically provisioned volume %q is released and it will be deleted", volume.Name)
if volume, err = ctrl.updateVolumePhase(volume, v1.VolumeReleased, ""); err != nil {
// Nothing was saved; we will fall back into the same condition
// in the next call to this method