@@ -174,7 +174,6 @@ describe('cluster', () => {
174
174
175
175
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
176
176
clusterName : 'cluster' ,
177
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
178
177
} ) ;
179
178
180
179
expect ( ( ) => cluster . clusterSecurityGroup ) . toThrow ( / " c l u s t e r S e c u r i t y G r o u p " i s n o t d e f i n e d f o r t h i s i m p o r t e d c l u s t e r / ) ;
@@ -215,7 +214,6 @@ describe('cluster', () => {
215
214
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
216
215
clusterName : 'cluster' ,
217
216
clusterSecurityGroupId : clusterSgId ,
218
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
219
217
} ) ;
220
218
221
219
const clusterSg = cluster . clusterSecurityGroup ;
@@ -281,7 +279,6 @@ describe('cluster', () => {
281
279
const importedCluster = eks . Cluster . fromClusterAttributes ( stack , 'ImportedCluster' , {
282
280
clusterName : cluster . clusterName ,
283
281
clusterSecurityGroupId : cluster . clusterSecurityGroupId ,
284
- kubectlLayer : new KubectlV31Layer ( stack , 'ImportKubectlLayer' ) ,
285
282
} ) ;
286
283
287
284
const selfManaged = new asg . AutoScalingGroup ( stack , 'self-managed' , {
@@ -981,7 +978,6 @@ describe('cluster', () => {
981
978
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
982
979
clusterName : 'cluster' ,
983
980
kubectlProvider : kubectlProvider ,
984
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
985
981
} ) ;
986
982
987
983
expect ( cluster . kubectlProvider ) . toEqual ( kubectlProvider ) ;
@@ -1001,7 +997,6 @@ describe('cluster', () => {
1001
997
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
1002
998
clusterName : 'cluster' ,
1003
999
kubectlProvider : kubectlProvider ,
1004
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
1005
1000
} ) ;
1006
1001
1007
1002
new eks . HelmChart ( stack , 'Chart' , {
@@ -1028,7 +1023,6 @@ describe('cluster', () => {
1028
1023
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
1029
1024
clusterName : 'cluster' ,
1030
1025
kubectlProvider : kubectlProvider ,
1031
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
1032
1026
} ) ;
1033
1027
1034
1028
new eks . HelmChart ( stack , 'Chart' , {
@@ -1062,7 +1056,6 @@ describe('cluster', () => {
1062
1056
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
1063
1057
clusterName : 'cluster' ,
1064
1058
kubectlProvider : kubectlProvider ,
1065
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
1066
1059
} ) ;
1067
1060
1068
1061
new eks . HelmChart ( stack , 'Chart' , {
@@ -1104,7 +1097,6 @@ describe('cluster', () => {
1104
1097
const cluster = eks . Cluster . fromClusterAttributes ( stack , 'Cluster' , {
1105
1098
clusterName : 'cluster' ,
1106
1099
kubectlPrivateSubnetIds : vpc . privateSubnets . map ( s => s . subnetId ) ,
1107
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
1108
1100
} ) ;
1109
1101
1110
1102
expect ( cluster . kubectlPrivateSubnets ?. map ( s => stack . resolve ( s . subnetId ) ) ) . toEqual ( [
@@ -1139,7 +1131,6 @@ describe('cluster', () => {
1139
1131
clusterCertificateAuthorityData : cluster . clusterCertificateAuthorityData ,
1140
1132
clusterSecurityGroupId : cluster . clusterSecurityGroupId ,
1141
1133
clusterEncryptionConfigKeyArn : cluster . clusterEncryptionConfigKeyArn ,
1142
- kubectlLayer : new KubectlV31Layer ( stack2 , 'KubectlLayer' ) ,
1143
1134
} ) ;
1144
1135
1145
1136
// this should cause an export/import
@@ -2605,7 +2596,6 @@ describe('cluster', () => {
2605
2596
clusterName,
2606
2597
kubectlRoleArn : 'arn:aws:iam::1111111:role/iam-role-that-has-masters-access' ,
2607
2598
kubectlLambdaRole : kubectlLambdaRole ,
2608
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
2609
2599
} ) ;
2610
2600
2611
2601
const chart = 'hello-world' ;
@@ -3338,7 +3328,6 @@ describe('cluster', () => {
3338
3328
clusterName : 'my-cluster' ,
3339
3329
kubectlRoleArn : 'arn:aws:iam::123456789012:role/MyRole' ,
3340
3330
kubectlMemory : cdk . Size . gibibytes ( 4 ) ,
3341
- kubectlLayer : new KubectlV31Layer ( stack , 'KubectlLayer' ) ,
3342
3331
} ) ;
3343
3332
3344
3333
cluster . addManifest ( 'foo' , { bar : 123 } ) ;
0 commit comments