Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a special instance-types string 'not-specified
Browse files Browse the repository at this point in the history
Signed-off-by: Mahmoud Gaballah <mahmoud.gaballah@zalando.de>
myaser committed Dec 2, 2024
1 parent 0a7121e commit e9d5eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/node_pool.go
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ func (np NodePool) KarpenterRequirements() []v1.NodeSelectorRequirementApplyConf
}

func (np NodePool) KarpenterInstanceTypeStrategy() string {
if len(np.InstanceTypes) == 0 {
if len(np.InstanceTypes) == 1 && np.InstanceTypes[0] == "not-specified" {
return "not-specified"
}
if len(np.InstanceTypes) == 1 && np.InstanceTypes[0] == "default-for-karpenter" {

0 comments on commit e9d5eed

Please sign in to comment.