From 4c83aae2cc7c661e357db5d03be520c56994f5cb Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 14 Mar 2023 16:17:48 +0100 Subject: [PATCH] kubeadm: replace intstr.FromInt with intstr.FromInt32 This touches cases where FromInt() is used on numeric constants, or values which are already int32s, or int variables which are defined close by and can be changed to int32s with little impact. Signed-off-by: Stephen Kitt --- cmd/kubeadm/app/util/apiclient/init_dryrun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/util/apiclient/init_dryrun.go b/cmd/kubeadm/app/util/apiclient/init_dryrun.go index 3cc64fabe90..4cb862d4f13 100644 --- a/cmd/kubeadm/app/util/apiclient/init_dryrun.go +++ b/cmd/kubeadm/app/util/apiclient/init_dryrun.go @@ -109,7 +109,7 @@ func (idr *InitDryRunGetter) handleKubernetesService(action core.GetAction) (boo { Name: "https", Port: 443, - TargetPort: intstr.FromInt(6443), + TargetPort: intstr.FromInt32(6443), }, }, },