Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/aws-profile-role/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/node": "^22"
},
"dependencies": {
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/awsx": "^3.0.0",
"@pulumi/kubernetes": "4.19.0",
"@pulumi/eks": "latest"
Expand Down
2 changes: 1 addition & 1 deletion examples/cluster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/awsx": "^3.0.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/deletion-policy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/awsx": "3.5.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/encryption-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/kubernetesx": "0.1.6",
"@pulumi/random": "4.16.8",
"@pulumi/eks": "latest"
Expand Down
2 changes: 1 addition & 1 deletion examples/ensure-cni-upgrade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/awsx": "^3.0.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/extra-sg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/modify-default-eks-sg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/network-policies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/awsx": "^3.0.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest",
"@pulumi/pulumi": "3.261.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/nodegroup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
}
}
2 changes: 1 addition & 1 deletion examples/oidc-iam-sa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/node": "^22"
},
"dependencies": {
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest",
"@pulumi/kubernetes": "4.19.0",
"@pulumi/pulumi": "3.261.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/pod-security-groups/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/awsx": "^3.0.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest",
"@pulumi/pulumi": "3.261.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/scoped-kubeconfigs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/node": "^22"
},
"dependencies": {
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest",
"@pulumi/kubernetes": "4.19.0",
"@pulumi/pulumi": "3.261.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/tags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@pulumi/pulumi": "3.261.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/eks": "latest"
}
}
8 changes: 4 additions & 4 deletions nodejs/eks/nodes/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const DEFAULT_INSTANCE_TYPE = "t3.medium";

export interface GetEfaNetworkInterfacesArgs {
// The instance types configured for the node group.
instanceTypes: pulumi.Input<pulumi.Input<string>[]> | undefined;
instanceTypes: pulumi.Input<pulumi.Input<string>[] | undefined> | undefined;
// The security group IDs to associate with the network interfaces.
securityGroupIds: pulumi.Input<pulumi.Input<string>[]>;
// The property path to use for the instance type in error messages.
Expand Down Expand Up @@ -118,7 +118,7 @@ export function getEfaNetworkInterfaces(
export function filterEfaSubnets(
subnetIds: pulumi.Input<pulumi.Input<string>[]>,
placementGroupAvailabilityZone: pulumi.Input<string>,
instanceTypes: pulumi.Input<pulumi.Input<string>[]> | undefined,
instanceTypes: pulumi.Input<pulumi.Input<string>[] | undefined> | undefined,
opts: pulumi.InvokeOptions,
): pulumi.Output<string[]> {
const instanceType = getEfaInstanceType(instanceTypes);
Expand Down Expand Up @@ -199,11 +199,11 @@ function getSupportedAZs(
* @returns The first instance type from the list, or "t3.medium" if no instance types are provided
*/
function getEfaInstanceType(
instanceTypes: pulumi.Input<pulumi.Input<string>[]> | undefined,
instanceTypes: pulumi.Input<pulumi.Input<string>[] | undefined> | undefined,
): pulumi.Output<string> {
return instanceTypes
? pulumi.output(instanceTypes).apply((types) => {
return types.length > 0 ? types[0] : DEFAULT_INSTANCE_TYPE;
return types && types.length > 0 ? types[0] : DEFAULT_INSTANCE_TYPE;
})
: pulumi.output(DEFAULT_INSTANCE_TYPE);
}
12 changes: 7 additions & 5 deletions nodejs/eks/nodes/nodegroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,7 @@ function createMNGCustomLaunchTemplate(

const taints = args.taints
? pulumi.output(args.taints).apply((taints) => {
return taints
return (taints ?? [])
.map((taint) => {
return {
[taint.key]: {
Expand Down Expand Up @@ -2354,7 +2354,7 @@ function getRecommendedAMI(
k8sVersion: pulumi.Output<string>,
parent: pulumi.Resource | undefined,
): pulumi.Input<string> {
let instanceTypes: pulumi.Input<pulumi.Input<string>[]> | undefined;
let instanceTypes: pulumi.Input<pulumi.Input<string>[] | undefined> | undefined;
let instanceTypesPropertyPath: string = "";
if ("instanceType" in args && args.instanceType) {
instanceTypes = [args.instanceType];
Expand All @@ -2372,7 +2372,7 @@ function getRecommendedAMI(

const amiType = args.amiType
? pulumi.output(args.amiType).apply((amiType) => {
const resolvedType = toAmiType(amiType);
const resolvedType = amiType === undefined ? undefined : toAmiType(amiType);
if (resolvedType === undefined) {
throw new pulumi.InputPropertyError({
propertyPath: "amiType",
Expand All @@ -2384,7 +2384,9 @@ function getRecommendedAMI(
: determineAmiType(os, args.gpu, instanceTypes, instanceTypesPropertyPath, parent);

// if specified use the version from the args, otherwise use the version from the cluster.
const version = args.version ? args.version : k8sVersion;
const version = pulumi
.all([args.version, k8sVersion])
.apply(([version, clusterVersion]) => version ?? clusterVersion);

return pulumi.all([amiType, version]).apply(([amiType, version]) => {
const parameterName = getAmiMetadata(amiType).ssmParameterName(version);
Expand Down Expand Up @@ -2433,7 +2435,7 @@ export function isGravitonInstance(instanceType: string, propertyPath: string):
function determineAmiType(
os: pulumi.Input<OperatingSystem>,
gpu: pulumi.Input<boolean> | undefined,
instanceTypes: pulumi.Input<pulumi.Input<string>[]> | undefined,
instanceTypes: pulumi.Input<pulumi.Input<string>[] | undefined> | undefined,
instanceTypesPropertyPath: string,
parent: pulumi.Resource | undefined,
): pulumi.Output<AmiType> {
Expand Down
2 changes: 1 addition & 1 deletion nodejs/eks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"bugs": "https://github.com/pulumi/pulumi-eks/issues",
"dependencies": {
"@iarna/toml": "^3.0.0",
"@pulumi/aws": "7.25.0",
"@pulumi/aws": "7.43.0",
"@pulumi/kubernetes": "4.19.0",
"@pulumi/pulumi": "3.261.0",
"https-proxy-agent": "^7.0.6",
Expand Down
8 changes: 4 additions & 4 deletions nodejs/eks/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2424,10 +2424,10 @@
resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.2.tgz#78d476333d85d5b1c792e257bca74ba080da49a4"
integrity sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==

"@pulumi/aws@7.25.0":
version "7.25.0"
resolved "https://registry.yarnpkg.com/@pulumi/aws/-/aws-7.25.0.tgz#d831f99e4e5faac496d36b3f3726b50cc1bba818"
integrity sha512-qP2ikhFJrw/NrizaOBWiAGkHe003+fPT5Blsc4X1q8uQ0CpmjnPAbbsotpI13hVBU4a2sflIX4GkHcXzRU9QQw==
"@pulumi/aws@7.43.0":
version "7.43.0"
resolved "https://registry.yarnpkg.com/@pulumi/aws/-/aws-7.43.0.tgz#84e4d90e83ebf32e05c64a2bf15c51aeee86d1ae"
integrity sha512-UCZCrOBn1xVu5CSfd9I3FNZCPkdEcXaB6XNacTj0wVB9iPj8Ma6dLnbfLsUT2ceGsmSMrhwOMvnacOrrhG722A==
dependencies:
"@pulumi/pulumi" "^3.142.0"
mime "^2.0.0"
Expand Down
Loading