mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
fix swallowed error in kubectl rolling_updater
This commit is contained in:
parent
02b520f0a4
commit
aa76cc8d7b
@ -749,7 +749,9 @@ func AddDeploymentKeyToReplicationController(oldRc *api.ReplicationController, r
|
|||||||
// we've finished re-adopting existing pods to the rc.
|
// we've finished re-adopting existing pods to the rc.
|
||||||
selector = labels.SelectorFromSet(selectorCopy)
|
selector = labels.SelectorFromSet(selectorCopy)
|
||||||
options = metav1.ListOptions{LabelSelector: selector.String()}
|
options = metav1.ListOptions{LabelSelector: selector.String()}
|
||||||
podList, err = podClient.Pods(namespace).List(options)
|
if podList, err = podClient.Pods(namespace).List(options); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
for ix := range podList.Items {
|
for ix := range podList.Items {
|
||||||
pod := &podList.Items[ix]
|
pod := &podList.Items[ix]
|
||||||
if value, found := pod.Labels[deploymentKey]; !found || value != deploymentValue {
|
if value, found := pod.Labels[deploymentKey]; !found || value != deploymentValue {
|
||||||
|
Loading…
Reference in New Issue
Block a user