mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Remove spam log messages from gce pd
Fixes https://github.com/kubernetes/kubernetes/pull/27410
This commit is contained in:
parent
542f2dc708
commit
cfab5362d4
@ -95,19 +95,9 @@ func (plugin *gcePersistentDiskPlugin) NewMounter(spec *volume.Spec, pod *api.Po
|
|||||||
func getVolumeSource(
|
func getVolumeSource(
|
||||||
spec *volume.Spec) (*api.GCEPersistentDiskVolumeSource, bool, error) {
|
spec *volume.Spec) (*api.GCEPersistentDiskVolumeSource, bool, error) {
|
||||||
if spec.Volume != nil && spec.Volume.GCEPersistentDisk != nil {
|
if spec.Volume != nil && spec.Volume.GCEPersistentDisk != nil {
|
||||||
glog.V(4).Infof(
|
|
||||||
"volume source %v spec %v, readonly flag retrieved from source: %v",
|
|
||||||
spec.Volume.GCEPersistentDisk.PDName,
|
|
||||||
spec.Name(),
|
|
||||||
spec.Volume.GCEPersistentDisk.ReadOnly)
|
|
||||||
return spec.Volume.GCEPersistentDisk, spec.Volume.GCEPersistentDisk.ReadOnly, nil
|
return spec.Volume.GCEPersistentDisk, spec.Volume.GCEPersistentDisk.ReadOnly, nil
|
||||||
} else if spec.PersistentVolume != nil &&
|
} else if spec.PersistentVolume != nil &&
|
||||||
spec.PersistentVolume.Spec.GCEPersistentDisk != nil {
|
spec.PersistentVolume.Spec.GCEPersistentDisk != nil {
|
||||||
glog.V(4).Infof(
|
|
||||||
"volume source %v spec %v, readonly flag retrieved from spec: %v",
|
|
||||||
spec.PersistentVolume.Spec.GCEPersistentDisk.PDName,
|
|
||||||
spec.Name(),
|
|
||||||
spec.ReadOnly)
|
|
||||||
return spec.PersistentVolume.Spec.GCEPersistentDisk, spec.ReadOnly, nil
|
return spec.PersistentVolume.Spec.GCEPersistentDisk, spec.ReadOnly, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user