Skip to content

Commit

Permalink
test: Add launch template test expectations from #7020 (#7055)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Sep 25, 2024
1 parent 79fbbac commit d3b06cc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 41 deletions.
6 changes: 3 additions & 3 deletions pkg/providers/amifamily/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ func (r Resolver) defaultClusterDNS(opts *Options, kubeletConfig *v1.KubeletConf

func (r Resolver) resolveLaunchTemplate(nodeClass *v1.EC2NodeClass, nodeClaim *karpv1.NodeClaim, instanceTypes []*cloudprovider.InstanceType, capacityType string,
amiFamily AMIFamily, amiID string, maxPods int, efaCount int, options *Options) *LaunchTemplate {
kubeletConfig := nodeClass.Spec.Kubelet
if kubeletConfig == nil {
kubeletConfig = &v1.KubeletConfiguration{}
kubeletConfig := &v1.KubeletConfiguration{}
if nodeClass.Spec.Kubelet != nil {
kubeletConfig = nodeClass.Spec.Kubelet.DeepCopy()
}
if kubeletConfig.MaxPods == nil {
// nolint:gosec
Expand Down
Loading

0 comments on commit d3b06cc

Please sign in to comment.