Skip to content

Commit

Permalink
removed file wrongly added
Browse files Browse the repository at this point in the history
  • Loading branch information
lpizzinidev committed Aug 18, 2023
1 parent 74b4a9c commit 4f6c938
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/aws-cdk-lib/aws-eks/lib/kubectl-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,8 @@ export class KubectlProvider extends NestedStack implements IKubectlProvider {

// defined only when using private access
vpc: cluster.kubectlPrivateSubnets ? cluster.vpc : undefined,
securityGroups: cluster.kubectlPrivateSubnets && cluster.kubectlSecurityGroup ?
[cluster.kubectlSecurityGroup] : undefined,
vpcSubnets: cluster.kubectlPrivateSubnets && cluster.kubectlPrivateSubnets ?
{ subnets: cluster.kubectlPrivateSubnets } : undefined,
securityGroups: cluster.kubectlSecurityGroup ? [cluster.kubectlSecurityGroup] : undefined,
vpcSubnets: cluster.kubectlPrivateSubnets ? { subnets: cluster.kubectlPrivateSubnets } : undefined,
});

// allow user to customize the layers with the tools we need
Expand Down Expand Up @@ -196,7 +194,7 @@ export class KubectlProvider extends NestedStack implements IKubectlProvider {
onEventHandler: handler,
vpc: cluster.kubectlPrivateSubnets ? cluster.vpc : undefined,
vpcSubnets: cluster.kubectlPrivateSubnets ? { subnets: cluster.kubectlPrivateSubnets } : undefined,
securityGroups: cluster.kubectlPrivateSubnets && cluster.kubectlSecurityGroup ? [cluster.kubectlSecurityGroup] : undefined,
securityGroups: cluster.kubectlSecurityGroup ? [cluster.kubectlSecurityGroup] : undefined,
});

this.serviceToken = provider.serviceToken;
Expand Down

0 comments on commit 4f6c938

Please sign in to comment.