mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
use glog.V().Infof() for formatting output; return nil when err's nil
This commit is contained in:
parent
1f86c1cf26
commit
c702a24182
@ -244,7 +244,7 @@ func (pvlc *PersistentVolumeLabelController) createPatch(vol *v1.PersistentVolum
|
|||||||
}
|
}
|
||||||
// Populate NodeAffinity with requirements if there are no conflicting keys found
|
// Populate NodeAffinity with requirements if there are no conflicting keys found
|
||||||
if v1helper.NodeSelectorRequirementKeysExistInNodeSelectorTerms(requirements, newVolume.Spec.NodeAffinity.Required.NodeSelectorTerms) {
|
if v1helper.NodeSelectorRequirementKeysExistInNodeSelectorTerms(requirements, newVolume.Spec.NodeAffinity.Required.NodeSelectorTerms) {
|
||||||
glog.V(4).Info("NodeSelectorRequirements for cloud labels %v conflict with existing NodeAffinity %v. Skipping addition of NodeSelectorRequirements for cloud labels.",
|
glog.V(4).Infof("NodeSelectorRequirements for cloud labels %v conflict with existing NodeAffinity %v. Skipping addition of NodeSelectorRequirements for cloud labels.",
|
||||||
requirements, newVolume.Spec.NodeAffinity)
|
requirements, newVolume.Spec.NodeAffinity)
|
||||||
} else {
|
} else {
|
||||||
for _, req := range requirements {
|
for _, req := range requirements {
|
||||||
@ -288,7 +288,7 @@ func (pvlc *PersistentVolumeLabelController) updateVolume(vol *v1.PersistentVolu
|
|||||||
}
|
}
|
||||||
glog.V(4).Infof("updated PersistentVolume %s", volName)
|
glog.V(4).Infof("updated PersistentVolume %s", volName)
|
||||||
|
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeInitializer(initializers *metav1.Initializers, name string) *metav1.Initializers {
|
func removeInitializer(initializers *metav1.Initializers, name string) *metav1.Initializers {
|
||||||
|
Loading…
Reference in New Issue
Block a user