cleanup: Update deprecated FromInt to FromInt32 (#119858)

* redo commit

* apply suggestions from liggitt

* update Parse function based on suggestions
This commit is contained in:
git-jxj
2023-08-17 00:33:01 +08:00
committed by GitHub
parent c5a675808b
commit a5b3a4b738
35 changed files with 91 additions and 91 deletions

View File

@@ -187,7 +187,7 @@ func markPodReady(c clientset.Interface, ns string, pod *v1.Pod) error {
}
func intOrStrP(num int) *intstr.IntOrString {
intstr := intstr.FromInt(num)
intstr := intstr.FromInt32(int32(num))
return &intstr
}