@@ -312,9 +312,10 @@ func TestAcceptanceForMkpClusterResource(t *testing.T) {
312312 ),
313313 },
314314 {
315- ResourceName : testhelper .EksClusterResourceName ,
316- ImportState : true ,
317- ImportStateVerify : true ,
315+ ResourceName : testhelper .EksClusterResourceName ,
316+ ImportState : true ,
317+ ImportStateVerify : true ,
318+ ImportStateVerifyIgnore : []string {waitForKubeconfig },
318319 },
319320 },
320321 })
@@ -418,7 +419,7 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware
418419 return eksmodel.VmwareTanzuManageV1alpha1EksclusterSpec {
419420 ClusterGroupName : "default" ,
420421 Config : & eksmodel.VmwareTanzuManageV1alpha1EksclusterControlPlaneConfig {
421- Version : "1.23 " ,
422+ Version : "1.26 " ,
422423 RoleArn : controlPlaneRoleARN ,
423424 Tags : map [string ]string {
424425 "tmc.cloud.vmware.com/tmc-managed" : "true" ,
@@ -441,14 +442,9 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware
441442 PublicAccessCidrs : []string {
442443 "0.0.0.0/0" ,
443444 },
444- SecurityGroups : []string {
445- "sg-0a6768722e9716768" ,
446- },
445+ SecurityGroups : []string {"sg-0b77767aa25e20fec" },
447446 SubnetIds : []string {
448- "subnet-0a184f6302af32a86" ,
449- "subnet-0ed95d5c212ac62a1" ,
450- "subnet-0526ecaecde5b1bf7" ,
451- "subnet-06897e1063cc0cf4e" ,
447+ "subnet-0c285da60b373a4cc" , "subnet-0be854d94fa197cb7" , "subnet-04975d535cf761785" , "subnet-0d50aa17c694457c9" ,
452448 },
453449 },
454450 },
@@ -460,12 +456,9 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware
460456 Description : "tf nodepool description" ,
461457 },
462458 Spec : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolSpec {
463- RoleArn : workerRoleArn ,
464- AmiType : "CUSTOM" ,
465- AmiInfo : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolAmiInfo {
466- AmiID : "ami-2qu8409oisdfj0qw" ,
467- OverrideBootstrapCmd : "#!/bin/bash\n /etc/eks/bootstrap.sh tf-test-ami" ,
468- },
459+ RoleArn : workerRoleArn ,
460+ AmiType : "AL2_x86_64" ,
461+ AmiInfo : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolAmiInfo {},
469462 CapacityType : "ON_DEMAND" ,
470463 RootDiskSize : 40 ,
471464 Tags : map [string ]string {
@@ -477,16 +470,7 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware
477470 "testnplabelkey" : "testnplabelvalue" ,
478471 },
479472 SubnetIds : []string {
480- "subnet-0a184f6302af32a86" ,
481- "subnet-0ed95d5c212ac62a1" ,
482- "subnet-0526ecaecde5b1bf7" ,
483- "subnet-06897e1063cc0cf4e" ,
484- },
485- RemoteAccess : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolRemoteAccess {
486- SSHKey : "anshulc" ,
487- SecurityGroups : []string {
488- "sg-0a6768722e9716768" ,
489- },
473+ "subnet-0c285da60b373a4cc" , "subnet-0be854d94fa197cb7" , "subnet-04975d535cf761785" , "subnet-0d50aa17c694457c9" ,
490474 },
491475 ScalingConfig : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolScalingConfig {
492476 DesiredSize : 4 ,
@@ -501,6 +485,7 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware
501485 "m3.large" ,
502486 },
503487 Taints : make ([]* eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolTaint , 0 ),
488+ RemoteAccess : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolRemoteAccess {},
504489 LaunchTemplate : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolLaunchTemplate {},
505490 },
506491 },
@@ -520,15 +505,9 @@ func getMockEksClusterSpec(accountID string, templateID string) (eksmodel.Vmware
520505 "testnplabelkey" : "testnplabelvalue" ,
521506 },
522507 SubnetIds : []string {
523- "subnet-0a184f6302af32a86" ,
524- "subnet-0ed95d5c212ac62a1" ,
525- "subnet-0526ecaecde5b1bf7" ,
526- "subnet-06897e1063cc0cf4e" ,
527- },
528- LaunchTemplate : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolLaunchTemplate {
529- Name : "PLACE_HOLDER" ,
530- Version : "PLACE_HOLDER" ,
508+ "subnet-0c285da60b373a4cc" , "subnet-0be854d94fa197cb7" , "subnet-04975d535cf761785" , "subnet-0d50aa17c694457c9" ,
531509 },
510+ LaunchTemplate : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolLaunchTemplate {},
532511 ScalingConfig : & eksmodel.VmwareTanzuManageV1alpha1EksclusterNodepoolScalingConfig {
533512 DesiredSize : 4 ,
534513 MaxSize : 8 ,
0 commit comments