mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #72636 from mesaugat/patch-1
Aesthetic changes and fix typo
This commit is contained in:
commit
8cb5bc49b6
@ -549,7 +549,7 @@ func (ctrl *PersistentVolumeController) syncVolume(volume *v1.PersistentVolume)
|
|||||||
// 2) apiserver if not found in informer cache
|
// 2) apiserver if not found in informer cache
|
||||||
// to make sure we will not reclaim a PV wrongly.
|
// to make sure we will not reclaim a PV wrongly.
|
||||||
// Note that only non-released and non-failed volumes will be
|
// Note that only non-released and non-failed volumes will be
|
||||||
// updated to Released state when PVC does not eixst.
|
// updated to Released state when PVC does not exist.
|
||||||
if volume.Status.Phase != v1.VolumeReleased && volume.Status.Phase != v1.VolumeFailed {
|
if volume.Status.Phase != v1.VolumeReleased && volume.Status.Phase != v1.VolumeFailed {
|
||||||
obj, err = ctrl.claimLister.PersistentVolumeClaims(volume.Spec.ClaimRef.Namespace).Get(volume.Spec.ClaimRef.Name)
|
obj, err = ctrl.claimLister.PersistentVolumeClaims(volume.Spec.ClaimRef.Namespace).Get(volume.Spec.ClaimRef.Name)
|
||||||
if err != nil && !apierrs.IsNotFound(err) {
|
if err != nil && !apierrs.IsNotFound(err) {
|
||||||
@ -1096,8 +1096,8 @@ func (ctrl *PersistentVolumeController) reclaimVolume(volume *v1.PersistentVolum
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// doRerecycleVolumeOperationcycleVolume recycles a volume. This method is
|
// recycleVolumeOperation recycles a volume. This method is running in
|
||||||
// running in standalone goroutine and already has all necessary locks.
|
// standalone goroutine and already has all necessary locks.
|
||||||
func (ctrl *PersistentVolumeController) recycleVolumeOperation(volume *v1.PersistentVolume) {
|
func (ctrl *PersistentVolumeController) recycleVolumeOperation(volume *v1.PersistentVolume) {
|
||||||
klog.V(4).Infof("recycleVolumeOperation [%s] started", volume.Name)
|
klog.V(4).Infof("recycleVolumeOperation [%s] started", volume.Name)
|
||||||
|
|
||||||
@ -1331,7 +1331,7 @@ func (ctrl *PersistentVolumeController) isVolumeUsed(pv *v1.PersistentVolume) ([
|
|||||||
|
|
||||||
// doDeleteVolume finds appropriate delete plugin and deletes given volume, returning
|
// doDeleteVolume finds appropriate delete plugin and deletes given volume, returning
|
||||||
// the volume plugin name. Also, it returns 'true', when the volume was deleted and
|
// the volume plugin name. Also, it returns 'true', when the volume was deleted and
|
||||||
// 'false' when the volume cannot be deleted because of the deleter is external. No
|
// 'false' when the volume cannot be deleted because the deleter is external. No
|
||||||
// error should be reported in this case.
|
// error should be reported in this case.
|
||||||
func (ctrl *PersistentVolumeController) doDeleteVolume(volume *v1.PersistentVolume) (string, bool, error) {
|
func (ctrl *PersistentVolumeController) doDeleteVolume(volume *v1.PersistentVolume) (string, bool, error) {
|
||||||
klog.V(4).Infof("doDeleteVolume [%s]", volume.Name)
|
klog.V(4).Infof("doDeleteVolume [%s]", volume.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user