diff --git a/pkg/providers/amifamily/resolver.go b/pkg/providers/amifamily/resolver.go index 6ab62d975a34..4ca065c5036e 100644 --- a/pkg/providers/amifamily/resolver.go +++ b/pkg/providers/amifamily/resolver.go @@ -215,6 +215,9 @@ func (r Resolver) resolveLaunchTemplate(nodeClass *v1.EC2NodeClass, nodeClaim *k kubeletConfig = &v1.KubeletConfiguration{} } if kubeletConfig.MaxPods == nil { + // nolint:gosec + // We know that it's not possible to have values that would overflow int32 here since we control + // the maxPods values that we pass in here kubeletConfig.MaxPods = lo.ToPtr(int32(maxPods)) } taints := lo.Flatten([][]corev1.Taint{