Skip to content

Commit

Permalink
fix: node condition will be overridden
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jan 19, 2024
1 parent 1df2d62 commit 409ecec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (k *k8s) PatchNodeIPResCondition(status corev1.ConditionStatus, reason, mes
}

patch := []byte(fmt.Sprintf(`{"status":{"conditions":%s}}`, raw))
return k.client.Status().Patch(context.Background(), node, client.RawPatch(k8stypes.MergePatchType, patch))
return k.client.Status().Patch(context.Background(), node, client.RawPatch(k8stypes.StrategicMergePatchType, patch))
}

func (k *k8s) PatchNodeAnnotations(anno map[string]string) error {
Expand Down

0 comments on commit 409ecec

Please sign in to comment.