Skip to content

Commit

Permalink
Merge branch 'main' into remove-post-install-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam authored Aug 21, 2024
2 parents 4c94f14 + 3a95818 commit 7d27a83
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 7d27a83

Please sign in to comment.