Merge pull request #16325 from rifelpet/tester-karpenter

Dont set -num-nodes on karpenter-managed clusters
This commit is contained in:
Kubernetes Prow Robot 2024-02-05 06:05:50 -08:00 committed by GitHub
commit 0fca3f37a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -199,9 +199,11 @@ func (t *Tester) addNodeIG() error {
ig = v
}
}
numNodes := int(*ig.Spec.MaxSize) // we assume that MinSize = Maxsize, this is true for e2e testing
klog.Infof("Setting -num-nodes=%v", numNodes)
t.TestArgs += " -num-nodes=" + strconv.Itoa(numNodes)
if ig.Spec.MaxSize != nil {
numNodes := int(*ig.Spec.MaxSize) // we assume that MinSize = Maxsize, this is true for e2e testing
klog.Infof("Setting -num-nodes=%v", numNodes)
t.TestArgs += " -num-nodes=" + strconv.Itoa(numNodes)
}
// Skip the rest of this function for non gce clusters
if cluster.Spec.LegacyCloudProvider != "gce" {