Skip to content

Commit

Permalink
chore: Fix golang-ci failure for integer conversion (#6828)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Aug 21, 2024
1 parent bb87d5b commit 3a95818
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/providers/amifamily/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 3a95818

Please sign in to comment.