Skip to content

Commit

Permalink
Merge pull request #879 from theothermike/theothermike/fix_warm_eni_t…
Browse files Browse the repository at this point in the history
…arget_0_value

support setting value 0 for warmEniTarget in VpcCni module
  • Loading branch information
kpitzen authored May 2, 2023
2 parents 210d6b1 + 7e37f22 commit 563970b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions nodejs/eks/cmd/provider/cni.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,7 @@ function computeVpcCniYaml(cniYamlText: string, args: VpcCniInputs): string {
value: args.customNetworkConfig ? "true" : "false",
});
}
if (args.warmEniTarget) {
env.push({
name: "WARM_ENI_TARGET",
value: args.warmEniTarget.toString(),
});
} else {
env.push({ name: "WARM_ENI_TARGET", value: "1" });
}
env.push({ name: "WARM_ENI_TARGET", value: `${args.warmEniTarget ?? 1}` });
if (args.warmIpTarget) {
env.push({
name: "WARM_IP_TARGET",
Expand Down

0 comments on commit 563970b

Please sign in to comment.