Closed jonathan-innis closed 2 months ago
Totals | |
---|---|
Change from base Build 10838271515: | 0.02% |
Covered Lines: | 5942 |
Relevant Lines: | 7484 |
Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-cd04d65077eaed45e212e2140c0081768f3de547
.
To install you must login to the ECR repo with an AWS account:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com
helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-cd04d65077eaed45e212e2140c0081768f3de547" --namespace "kube-system" --create-namespace \
--set "settings.clusterName=${CLUSTER_NAME}" \
--set "settings.interruptionQueue=${CLUSTER_NAME}" \
--set controller.resources.requests.cpu=1 \
--set controller.resources.requests.memory=1Gi \
--set controller.resources.limits.cpu=1 \
--set controller.resources.limits.memory=1Gi \
--wait
In which release can we expect this fix?
Fixes #7011 Fixes #6890 Fixes #6979
Description
This PR fixes a bug where both
GetKubeletConfigurationWithNodeClaim
andGetKubeletConfigurationWithNodePool
were returning thenodeClass.Spec.Kubelet
back to the caller when Kubelet was specified and there was no Kubelet compatibility annotation.This would be fine; however, this call returned back the original pointer for the Kubelet data -- meaning that any caller could then mutate the original data for other callers without knowing it. In this case, the launch template resolver was inadvertently mutating the maxPods data across instance type combinations, leading to incorrect maxPods values being specified sometimes.
How was this change tested?
make presubmit
Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.