mirror of https://github.com/k3s-io/k3s
Use len of pods in stateful set error
parent
3b9eb1a875
commit
cef629c63e
|
@ -417,11 +417,10 @@ func (ssc *StatefulSetController) sync(key string) error {
|
|||
|
||||
// syncStatefulSet syncs a tuple of (statefulset, []*v1.Pod).
|
||||
func (ssc *StatefulSetController) syncStatefulSet(set *apps.StatefulSet, pods []*v1.Pod) error {
|
||||
glog.V(2).Infof("Syncing StatefulSet %v/%v with %d pods", set.Namespace, set.Name, len(pods))
|
||||
glog.V(4).Infof("Syncing StatefulSet %v/%v with %d pods", set.Namespace, set.Name, len(pods))
|
||||
if err := ssc.control.UpdateStatefulSet(set, pods); err != nil {
|
||||
glog.V(2).Infof("Error syncing StatefulSet %s/%s with %d pods : %s", set.Namespace, set.Name, err)
|
||||
return err
|
||||
}
|
||||
glog.V(2).Infof("Successfully synced StatefulSet %s/%s successful", set.Namespace, set.Name)
|
||||
glog.V(4).Infof("Successfully synced StatefulSet %s/%s successful", set.Namespace, set.Name)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue