Skip to content

Commit

Permalink
fix ci bugs
Browse files Browse the repository at this point in the history
Signed-off-by: jiangshixuan.jsx <jiangshixuan.jsx@alibaba-inc.com>
  • Loading branch information
jiangshixuan.jsx committed Jul 18, 2023
1 parent 5863246 commit b1c7332
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/control/sidecarcontrol/sidecarset_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func (c *commonControl) UpdatePodAnnotationsInUpgrade(changedContainers []string
}
by, _ = json.Marshal(mainContainerStatuses)
pod.Annotations[SidecarSetBeforeHotUpgradeStateKey] = string(by)
return
}

// only check sidecar container is consistent
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/sidecarset/sidecarset_hotupgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func getPreviousMainContainerStatus(pod *corev1.Pod) map[string]bool {
tmp := make(SidecarsetMainContainerStatus)
err := json.Unmarshal([]byte(v), &tmp)
if err != nil {
klog.Errorf("error unmarshaling pod(%s.%s)'s previous main container status, return nil", pod.Namespace, pod.Name)
klog.Errorf("error unmarshalling pod(%s/%s)'s previous main container status, return nil", pod.Namespace, pod.Name)
return nil
}
for k, v := range tmp {
Expand Down

0 comments on commit b1c7332

Please sign in to comment.