Skip to content

Commit

Permalink
pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Jul 12, 2024
1 parent d8b070a commit d1ba8b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion pkg/providers/amifamily/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ func (r Resolver) resolveLaunchTemplate(nodeClass *v1.EC2NodeClass, nodeClaim *k
if kubeletConfig == nil {
kubeletConfig = &v1.KubeletConfiguration{}
}
fmt.Printf("resolved kubelet config with maxPods %d\n", lo.FromPtr(kubeletConfig.MaxPods))
if kubeletConfig.MaxPods == nil {
kubeletConfig.MaxPods = lo.ToPtr(int32(maxPods))
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/providers/launchtemplate/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ var _ = Describe("LaunchTemplate Provider", func() {
BeforeEach(func() {
nodeClass = test.EC2NodeClass(
v1.EC2NodeClass{
// Spec: v1.EC2NodeClassSpec{
// Kubelet: &v1.KubeletConfiguration{},
// },
Status: v1.EC2NodeClassStatus{
InstanceProfile: "test-profile",
SecurityGroups: []v1.SecurityGroup{
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func parseKubeletConfiguration(annotation string) (*v1.KubeletConfiguration, err
kubelet := &karpv1beta1.KubeletConfiguration{}
err := json.Unmarshal([]byte(annotation), kubelet)
if err != nil {
return nil, err
return nil, fmt.Errorf("parsing kubelet config from %s annotation, %w", karpv1.KubeletCompatabilityAnnotationKey, err)
}
return &v1.KubeletConfiguration{
ClusterDNS: kubelet.ClusterDNS,
Expand Down

0 comments on commit d1ba8b5

Please sign in to comment.