-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
fake_stack_manager.go
4722 lines (4369 loc) · 173 KB
/
fake_stack_manager.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by counterfeiter. DO NOT EDIT.
package fakes
import (
"context"
"sync"
typesa "github.com/aws/aws-sdk-go-v2/service/autoscaling/types"
"github.com/aws/aws-sdk-go-v2/service/cloudformation"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
typesb "github.com/aws/aws-sdk-go-v2/service/cloudtrail/types"
typesc "github.com/aws/aws-sdk-go-v2/service/eks/types"
"github.com/weaveworks/eksctl/pkg/apis/eksctl.io/v1alpha5"
"github.com/weaveworks/eksctl/pkg/awsapi"
"github.com/weaveworks/eksctl/pkg/cfn/builder"
"github.com/weaveworks/eksctl/pkg/cfn/manager"
iamoidc "github.com/weaveworks/eksctl/pkg/iam/oidc"
"github.com/weaveworks/eksctl/pkg/kubernetes"
"github.com/weaveworks/eksctl/pkg/utils/tasks"
"github.com/weaveworks/eksctl/pkg/vpc"
)
type FakeStackManager struct {
AppendNewClusterStackResourceStub func(context.Context, bool, bool) (bool, error)
appendNewClusterStackResourceMutex sync.RWMutex
appendNewClusterStackResourceArgsForCall []struct {
arg1 context.Context
arg2 bool
arg3 bool
}
appendNewClusterStackResourceReturns struct {
result1 bool
result2 error
}
appendNewClusterStackResourceReturnsOnCall map[int]struct {
result1 bool
result2 error
}
ClusterHasDedicatedVPCStub func(context.Context) (bool, error)
clusterHasDedicatedVPCMutex sync.RWMutex
clusterHasDedicatedVPCArgsForCall []struct {
arg1 context.Context
}
clusterHasDedicatedVPCReturns struct {
result1 bool
result2 error
}
clusterHasDedicatedVPCReturnsOnCall map[int]struct {
result1 bool
result2 error
}
CreateStackStub func(context.Context, string, builder.ResourceSetReader, map[string]string, map[string]string, chan error) error
createStackMutex sync.RWMutex
createStackArgsForCall []struct {
arg1 context.Context
arg2 string
arg3 builder.ResourceSetReader
arg4 map[string]string
arg5 map[string]string
arg6 chan error
}
createStackReturns struct {
result1 error
}
createStackReturnsOnCall map[int]struct {
result1 error
}
DeleteStackBySpecStub func(context.Context, *types.Stack) (*types.Stack, error)
deleteStackBySpecMutex sync.RWMutex
deleteStackBySpecArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
deleteStackBySpecReturns struct {
result1 *types.Stack
result2 error
}
deleteStackBySpecReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
DeleteStackBySpecSyncStub func(context.Context, *types.Stack, chan error) error
deleteStackBySpecSyncMutex sync.RWMutex
deleteStackBySpecSyncArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
arg3 chan error
}
deleteStackBySpecSyncReturns struct {
result1 error
}
deleteStackBySpecSyncReturnsOnCall map[int]struct {
result1 error
}
DeleteStackSyncStub func(context.Context, *types.Stack) error
deleteStackSyncMutex sync.RWMutex
deleteStackSyncArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
deleteStackSyncReturns struct {
result1 error
}
deleteStackSyncReturnsOnCall map[int]struct {
result1 error
}
DeleteTasksForDeprecatedStacksStub func(context.Context) (*tasks.TaskTree, error)
deleteTasksForDeprecatedStacksMutex sync.RWMutex
deleteTasksForDeprecatedStacksArgsForCall []struct {
arg1 context.Context
}
deleteTasksForDeprecatedStacksReturns struct {
result1 *tasks.TaskTree
result2 error
}
deleteTasksForDeprecatedStacksReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
result2 error
}
DescribeClusterStackStub func(context.Context) (*types.Stack, error)
describeClusterStackMutex sync.RWMutex
describeClusterStackArgsForCall []struct {
arg1 context.Context
}
describeClusterStackReturns struct {
result1 *types.Stack
result2 error
}
describeClusterStackReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
DescribeClusterStackIfExistsStub func(context.Context) (*types.Stack, error)
describeClusterStackIfExistsMutex sync.RWMutex
describeClusterStackIfExistsArgsForCall []struct {
arg1 context.Context
}
describeClusterStackIfExistsReturns struct {
result1 *types.Stack
result2 error
}
describeClusterStackIfExistsReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
DescribeIAMServiceAccountStacksStub func(context.Context) ([]*types.Stack, error)
describeIAMServiceAccountStacksMutex sync.RWMutex
describeIAMServiceAccountStacksArgsForCall []struct {
arg1 context.Context
}
describeIAMServiceAccountStacksReturns struct {
result1 []*types.Stack
result2 error
}
describeIAMServiceAccountStacksReturnsOnCall map[int]struct {
result1 []*types.Stack
result2 error
}
DescribeNodeGroupStackStub func(context.Context, string) (*types.Stack, error)
describeNodeGroupStackMutex sync.RWMutex
describeNodeGroupStackArgsForCall []struct {
arg1 context.Context
arg2 string
}
describeNodeGroupStackReturns struct {
result1 *types.Stack
result2 error
}
describeNodeGroupStackReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
DescribeNodeGroupStacksAndResourcesStub func(context.Context) (map[string]manager.StackInfo, error)
describeNodeGroupStacksAndResourcesMutex sync.RWMutex
describeNodeGroupStacksAndResourcesArgsForCall []struct {
arg1 context.Context
}
describeNodeGroupStacksAndResourcesReturns struct {
result1 map[string]manager.StackInfo
result2 error
}
describeNodeGroupStacksAndResourcesReturnsOnCall map[int]struct {
result1 map[string]manager.StackInfo
result2 error
}
DescribeStackStub func(context.Context, *types.Stack) (*types.Stack, error)
describeStackMutex sync.RWMutex
describeStackArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
describeStackReturns struct {
result1 *types.Stack
result2 error
}
describeStackReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
DescribeStackChangeSetStub func(context.Context, *types.Stack, string) (*cloudformation.DescribeChangeSetOutput, error)
describeStackChangeSetMutex sync.RWMutex
describeStackChangeSetArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
arg3 string
}
describeStackChangeSetReturns struct {
result1 *cloudformation.DescribeChangeSetOutput
result2 error
}
describeStackChangeSetReturnsOnCall map[int]struct {
result1 *cloudformation.DescribeChangeSetOutput
result2 error
}
DescribeStackEventsStub func(context.Context, *types.Stack) ([]types.StackEvent, error)
describeStackEventsMutex sync.RWMutex
describeStackEventsArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
describeStackEventsReturns struct {
result1 []types.StackEvent
result2 error
}
describeStackEventsReturnsOnCall map[int]struct {
result1 []types.StackEvent
result2 error
}
DoCreateStackRequestStub func(context.Context, *types.Stack, manager.TemplateData, map[string]string, map[string]string, bool, bool) error
doCreateStackRequestMutex sync.RWMutex
doCreateStackRequestArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
arg3 manager.TemplateData
arg4 map[string]string
arg5 map[string]string
arg6 bool
arg7 bool
}
doCreateStackRequestReturns struct {
result1 error
}
doCreateStackRequestReturnsOnCall map[int]struct {
result1 error
}
DoWaitUntilStackIsCreatedStub func(context.Context, *types.Stack) error
doWaitUntilStackIsCreatedMutex sync.RWMutex
doWaitUntilStackIsCreatedArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
doWaitUntilStackIsCreatedReturns struct {
result1 error
}
doWaitUntilStackIsCreatedReturnsOnCall map[int]struct {
result1 error
}
EnsureMapPublicIPOnLaunchEnabledStub func(context.Context) error
ensureMapPublicIPOnLaunchEnabledMutex sync.RWMutex
ensureMapPublicIPOnLaunchEnabledArgsForCall []struct {
arg1 context.Context
}
ensureMapPublicIPOnLaunchEnabledReturns struct {
result1 error
}
ensureMapPublicIPOnLaunchEnabledReturnsOnCall map[int]struct {
result1 error
}
FixClusterCompatibilityStub func(context.Context) error
fixClusterCompatibilityMutex sync.RWMutex
fixClusterCompatibilityArgsForCall []struct {
arg1 context.Context
}
fixClusterCompatibilityReturns struct {
result1 error
}
fixClusterCompatibilityReturnsOnCall map[int]struct {
result1 error
}
GetAutoScalingGroupDesiredCapacityStub func(context.Context, string) (typesa.AutoScalingGroup, error)
getAutoScalingGroupDesiredCapacityMutex sync.RWMutex
getAutoScalingGroupDesiredCapacityArgsForCall []struct {
arg1 context.Context
arg2 string
}
getAutoScalingGroupDesiredCapacityReturns struct {
result1 typesa.AutoScalingGroup
result2 error
}
getAutoScalingGroupDesiredCapacityReturnsOnCall map[int]struct {
result1 typesa.AutoScalingGroup
result2 error
}
GetAutoScalingGroupNameStub func(context.Context, *types.Stack) (string, error)
getAutoScalingGroupNameMutex sync.RWMutex
getAutoScalingGroupNameArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
getAutoScalingGroupNameReturns struct {
result1 string
result2 error
}
getAutoScalingGroupNameReturnsOnCall map[int]struct {
result1 string
result2 error
}
GetClusterStackIfExistsStub func(context.Context) (*types.Stack, error)
getClusterStackIfExistsMutex sync.RWMutex
getClusterStackIfExistsArgsForCall []struct {
arg1 context.Context
}
getClusterStackIfExistsReturns struct {
result1 *types.Stack
result2 error
}
getClusterStackIfExistsReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
GetFargateStackStub func(context.Context) (*types.Stack, error)
getFargateStackMutex sync.RWMutex
getFargateStackArgsForCall []struct {
arg1 context.Context
}
getFargateStackReturns struct {
result1 *types.Stack
result2 error
}
getFargateStackReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
GetIAMAddonNameStub func(*types.Stack) string
getIAMAddonNameMutex sync.RWMutex
getIAMAddonNameArgsForCall []struct {
arg1 *types.Stack
}
getIAMAddonNameReturns struct {
result1 string
}
getIAMAddonNameReturnsOnCall map[int]struct {
result1 string
}
GetIAMAddonsStacksStub func(context.Context) ([]*types.Stack, error)
getIAMAddonsStacksMutex sync.RWMutex
getIAMAddonsStacksArgsForCall []struct {
arg1 context.Context
}
getIAMAddonsStacksReturns struct {
result1 []*types.Stack
result2 error
}
getIAMAddonsStacksReturnsOnCall map[int]struct {
result1 []*types.Stack
result2 error
}
GetIAMServiceAccountsStub func(context.Context) ([]*v1alpha5.ClusterIAMServiceAccount, error)
getIAMServiceAccountsMutex sync.RWMutex
getIAMServiceAccountsArgsForCall []struct {
arg1 context.Context
}
getIAMServiceAccountsReturns struct {
result1 []*v1alpha5.ClusterIAMServiceAccount
result2 error
}
getIAMServiceAccountsReturnsOnCall map[int]struct {
result1 []*v1alpha5.ClusterIAMServiceAccount
result2 error
}
GetKarpenterStackStub func(context.Context) (*types.Stack, error)
getKarpenterStackMutex sync.RWMutex
getKarpenterStackArgsForCall []struct {
arg1 context.Context
}
getKarpenterStackReturns struct {
result1 *types.Stack
result2 error
}
getKarpenterStackReturnsOnCall map[int]struct {
result1 *types.Stack
result2 error
}
GetManagedNodeGroupTemplateStub func(context.Context, manager.GetNodegroupOption) (string, error)
getManagedNodeGroupTemplateMutex sync.RWMutex
getManagedNodeGroupTemplateArgsForCall []struct {
arg1 context.Context
arg2 manager.GetNodegroupOption
}
getManagedNodeGroupTemplateReturns struct {
result1 string
result2 error
}
getManagedNodeGroupTemplateReturnsOnCall map[int]struct {
result1 string
result2 error
}
GetNodeGroupNameStub func(*types.Stack) string
getNodeGroupNameMutex sync.RWMutex
getNodeGroupNameArgsForCall []struct {
arg1 *types.Stack
}
getNodeGroupNameReturns struct {
result1 string
}
getNodeGroupNameReturnsOnCall map[int]struct {
result1 string
}
GetNodeGroupStackTypeStub func(context.Context, manager.GetNodegroupOption) (v1alpha5.NodeGroupType, error)
getNodeGroupStackTypeMutex sync.RWMutex
getNodeGroupStackTypeArgsForCall []struct {
arg1 context.Context
arg2 manager.GetNodegroupOption
}
getNodeGroupStackTypeReturns struct {
result1 v1alpha5.NodeGroupType
result2 error
}
getNodeGroupStackTypeReturnsOnCall map[int]struct {
result1 v1alpha5.NodeGroupType
result2 error
}
GetStackTemplateStub func(context.Context, string) (string, error)
getStackTemplateMutex sync.RWMutex
getStackTemplateArgsForCall []struct {
arg1 context.Context
arg2 string
}
getStackTemplateReturns struct {
result1 string
result2 error
}
getStackTemplateReturnsOnCall map[int]struct {
result1 string
result2 error
}
GetUnmanagedNodeGroupAutoScalingGroupNameStub func(context.Context, *types.Stack) (string, error)
getUnmanagedNodeGroupAutoScalingGroupNameMutex sync.RWMutex
getUnmanagedNodeGroupAutoScalingGroupNameArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
getUnmanagedNodeGroupAutoScalingGroupNameReturns struct {
result1 string
result2 error
}
getUnmanagedNodeGroupAutoScalingGroupNameReturnsOnCall map[int]struct {
result1 string
result2 error
}
HasClusterStackFromListStub func(context.Context, []string, string) (bool, error)
hasClusterStackFromListMutex sync.RWMutex
hasClusterStackFromListArgsForCall []struct {
arg1 context.Context
arg2 []string
arg3 string
}
hasClusterStackFromListReturns struct {
result1 bool
result2 error
}
hasClusterStackFromListReturnsOnCall map[int]struct {
result1 bool
result2 error
}
ListClusterStackNamesStub func(context.Context) ([]string, error)
listClusterStackNamesMutex sync.RWMutex
listClusterStackNamesArgsForCall []struct {
arg1 context.Context
}
listClusterStackNamesReturns struct {
result1 []string
result2 error
}
listClusterStackNamesReturnsOnCall map[int]struct {
result1 []string
result2 error
}
ListIAMServiceAccountStacksStub func(context.Context) ([]string, error)
listIAMServiceAccountStacksMutex sync.RWMutex
listIAMServiceAccountStacksArgsForCall []struct {
arg1 context.Context
}
listIAMServiceAccountStacksReturns struct {
result1 []string
result2 error
}
listIAMServiceAccountStacksReturnsOnCall map[int]struct {
result1 []string
result2 error
}
ListNodeGroupStacksStub func(context.Context) ([]*types.Stack, error)
listNodeGroupStacksMutex sync.RWMutex
listNodeGroupStacksArgsForCall []struct {
arg1 context.Context
}
listNodeGroupStacksReturns struct {
result1 []*types.Stack
result2 error
}
listNodeGroupStacksReturnsOnCall map[int]struct {
result1 []*types.Stack
result2 error
}
ListNodeGroupStacksWithStatusesStub func(context.Context) ([]manager.NodeGroupStack, error)
listNodeGroupStacksWithStatusesMutex sync.RWMutex
listNodeGroupStacksWithStatusesArgsForCall []struct {
arg1 context.Context
}
listNodeGroupStacksWithStatusesReturns struct {
result1 []manager.NodeGroupStack
result2 error
}
listNodeGroupStacksWithStatusesReturnsOnCall map[int]struct {
result1 []manager.NodeGroupStack
result2 error
}
ListStacksStub func(context.Context) ([]*types.Stack, error)
listStacksMutex sync.RWMutex
listStacksArgsForCall []struct {
arg1 context.Context
}
listStacksReturns struct {
result1 []*types.Stack
result2 error
}
listStacksReturnsOnCall map[int]struct {
result1 []*types.Stack
result2 error
}
ListStacksMatchingStub func(context.Context, string, ...types.StackStatus) ([]*types.Stack, error)
listStacksMatchingMutex sync.RWMutex
listStacksMatchingArgsForCall []struct {
arg1 context.Context
arg2 string
arg3 []types.StackStatus
}
listStacksMatchingReturns struct {
result1 []*types.Stack
result2 error
}
listStacksMatchingReturnsOnCall map[int]struct {
result1 []*types.Stack
result2 error
}
ListStacksWithStatusesStub func(context.Context, ...types.StackStatus) ([]*types.Stack, error)
listStacksWithStatusesMutex sync.RWMutex
listStacksWithStatusesArgsForCall []struct {
arg1 context.Context
arg2 []types.StackStatus
}
listStacksWithStatusesReturns struct {
result1 []*types.Stack
result2 error
}
listStacksWithStatusesReturnsOnCall map[int]struct {
result1 []*types.Stack
result2 error
}
LookupCloudTrailEventsStub func(context.Context, *types.Stack) ([]typesb.Event, error)
lookupCloudTrailEventsMutex sync.RWMutex
lookupCloudTrailEventsArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
}
lookupCloudTrailEventsReturns struct {
result1 []typesb.Event
result2 error
}
lookupCloudTrailEventsReturnsOnCall map[int]struct {
result1 []typesb.Event
result2 error
}
MakeChangeSetNameStub func(string) string
makeChangeSetNameMutex sync.RWMutex
makeChangeSetNameArgsForCall []struct {
arg1 string
}
makeChangeSetNameReturns struct {
result1 string
}
makeChangeSetNameReturnsOnCall map[int]struct {
result1 string
}
MakeClusterStackNameStub func() string
makeClusterStackNameMutex sync.RWMutex
makeClusterStackNameArgsForCall []struct {
}
makeClusterStackNameReturns struct {
result1 string
}
makeClusterStackNameReturnsOnCall map[int]struct {
result1 string
}
NewManagedNodeGroupTaskStub func(context.Context, []*v1alpha5.ManagedNodeGroup, bool, vpc.Importer) *tasks.TaskTree
newManagedNodeGroupTaskMutex sync.RWMutex
newManagedNodeGroupTaskArgsForCall []struct {
arg1 context.Context
arg2 []*v1alpha5.ManagedNodeGroup
arg3 bool
arg4 vpc.Importer
}
newManagedNodeGroupTaskReturns struct {
result1 *tasks.TaskTree
}
newManagedNodeGroupTaskReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
}
NewTaskToDeleteAddonIAMStub func(context.Context, bool) (*tasks.TaskTree, error)
newTaskToDeleteAddonIAMMutex sync.RWMutex
newTaskToDeleteAddonIAMArgsForCall []struct {
arg1 context.Context
arg2 bool
}
newTaskToDeleteAddonIAMReturns struct {
result1 *tasks.TaskTree
result2 error
}
newTaskToDeleteAddonIAMReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
result2 error
}
NewTaskToDeleteUnownedNodeGroupStub func(context.Context, string, string, awsapi.EKS, *manager.DeleteWaitCondition) tasks.Task
newTaskToDeleteUnownedNodeGroupMutex sync.RWMutex
newTaskToDeleteUnownedNodeGroupArgsForCall []struct {
arg1 context.Context
arg2 string
arg3 string
arg4 awsapi.EKS
arg5 *manager.DeleteWaitCondition
}
newTaskToDeleteUnownedNodeGroupReturns struct {
result1 tasks.Task
}
newTaskToDeleteUnownedNodeGroupReturnsOnCall map[int]struct {
result1 tasks.Task
}
NewTasksToCreateClusterWithNodeGroupsStub func(context.Context, []*v1alpha5.NodeGroup, []*v1alpha5.ManagedNodeGroup, ...tasks.Task) *tasks.TaskTree
newTasksToCreateClusterWithNodeGroupsMutex sync.RWMutex
newTasksToCreateClusterWithNodeGroupsArgsForCall []struct {
arg1 context.Context
arg2 []*v1alpha5.NodeGroup
arg3 []*v1alpha5.ManagedNodeGroup
arg4 []tasks.Task
}
newTasksToCreateClusterWithNodeGroupsReturns struct {
result1 *tasks.TaskTree
}
newTasksToCreateClusterWithNodeGroupsReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
}
NewTasksToCreateIAMServiceAccountsStub func([]*v1alpha5.ClusterIAMServiceAccount, *iamoidc.OpenIDConnectManager, kubernetes.ClientSetGetter) *tasks.TaskTree
newTasksToCreateIAMServiceAccountsMutex sync.RWMutex
newTasksToCreateIAMServiceAccountsArgsForCall []struct {
arg1 []*v1alpha5.ClusterIAMServiceAccount
arg2 *iamoidc.OpenIDConnectManager
arg3 kubernetes.ClientSetGetter
}
newTasksToCreateIAMServiceAccountsReturns struct {
result1 *tasks.TaskTree
}
newTasksToCreateIAMServiceAccountsReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
}
NewTasksToDeleteClusterWithNodeGroupsStub func(context.Context, *types.Stack, []manager.NodeGroupStack, bool, manager.NewOIDCManager, *typesc.Cluster, kubernetes.ClientSetGetter, bool, bool, func(chan error, string) error) (*tasks.TaskTree, error)
newTasksToDeleteClusterWithNodeGroupsMutex sync.RWMutex
newTasksToDeleteClusterWithNodeGroupsArgsForCall []struct {
arg1 context.Context
arg2 *types.Stack
arg3 []manager.NodeGroupStack
arg4 bool
arg5 manager.NewOIDCManager
arg6 *typesc.Cluster
arg7 kubernetes.ClientSetGetter
arg8 bool
arg9 bool
arg10 func(chan error, string) error
}
newTasksToDeleteClusterWithNodeGroupsReturns struct {
result1 *tasks.TaskTree
result2 error
}
newTasksToDeleteClusterWithNodeGroupsReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
result2 error
}
NewTasksToDeleteIAMServiceAccountsStub func(context.Context, []string, kubernetes.ClientSetGetter, bool) (*tasks.TaskTree, error)
newTasksToDeleteIAMServiceAccountsMutex sync.RWMutex
newTasksToDeleteIAMServiceAccountsArgsForCall []struct {
arg1 context.Context
arg2 []string
arg3 kubernetes.ClientSetGetter
arg4 bool
}
newTasksToDeleteIAMServiceAccountsReturns struct {
result1 *tasks.TaskTree
result2 error
}
newTasksToDeleteIAMServiceAccountsReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
result2 error
}
NewTasksToDeleteNodeGroupsStub func([]manager.NodeGroupStack, func(_ string) bool, bool, func(chan error, string) error) (*tasks.TaskTree, error)
newTasksToDeleteNodeGroupsMutex sync.RWMutex
newTasksToDeleteNodeGroupsArgsForCall []struct {
arg1 []manager.NodeGroupStack
arg2 func(_ string) bool
arg3 bool
arg4 func(chan error, string) error
}
newTasksToDeleteNodeGroupsReturns struct {
result1 *tasks.TaskTree
result2 error
}
newTasksToDeleteNodeGroupsReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
result2 error
}
NewTasksToDeleteOIDCProviderWithIAMServiceAccountsStub func(context.Context, manager.NewOIDCManager, *typesc.Cluster, kubernetes.ClientSetGetter, bool) (*tasks.TaskTree, error)
newTasksToDeleteOIDCProviderWithIAMServiceAccountsMutex sync.RWMutex
newTasksToDeleteOIDCProviderWithIAMServiceAccountsArgsForCall []struct {
arg1 context.Context
arg2 manager.NewOIDCManager
arg3 *typesc.Cluster
arg4 kubernetes.ClientSetGetter
arg5 bool
}
newTasksToDeleteOIDCProviderWithIAMServiceAccountsReturns struct {
result1 *tasks.TaskTree
result2 error
}
newTasksToDeleteOIDCProviderWithIAMServiceAccountsReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
result2 error
}
NewUnmanagedNodeGroupTaskStub func(context.Context, []*v1alpha5.NodeGroup, bool, vpc.Importer) *tasks.TaskTree
newUnmanagedNodeGroupTaskMutex sync.RWMutex
newUnmanagedNodeGroupTaskArgsForCall []struct {
arg1 context.Context
arg2 []*v1alpha5.NodeGroup
arg3 bool
arg4 vpc.Importer
}
newUnmanagedNodeGroupTaskReturns struct {
result1 *tasks.TaskTree
}
newUnmanagedNodeGroupTaskReturnsOnCall map[int]struct {
result1 *tasks.TaskTree
}
PropagateManagedNodeGroupTagsToASGStub func(string, map[string]string, []string, chan error) error
propagateManagedNodeGroupTagsToASGMutex sync.RWMutex
propagateManagedNodeGroupTagsToASGArgsForCall []struct {
arg1 string
arg2 map[string]string
arg3 []string
arg4 chan error
}
propagateManagedNodeGroupTagsToASGReturns struct {
result1 error
}
propagateManagedNodeGroupTagsToASGReturnsOnCall map[int]struct {
result1 error
}
RefreshFargatePodExecutionRoleARNStub func(context.Context) error
refreshFargatePodExecutionRoleARNMutex sync.RWMutex
refreshFargatePodExecutionRoleARNArgsForCall []struct {
arg1 context.Context
}
refreshFargatePodExecutionRoleARNReturns struct {
result1 error
}
refreshFargatePodExecutionRoleARNReturnsOnCall map[int]struct {
result1 error
}
StackStatusIsNotTransitionalStub func(*types.Stack) bool
stackStatusIsNotTransitionalMutex sync.RWMutex
stackStatusIsNotTransitionalArgsForCall []struct {
arg1 *types.Stack
}
stackStatusIsNotTransitionalReturns struct {
result1 bool
}
stackStatusIsNotTransitionalReturnsOnCall map[int]struct {
result1 bool
}
UpdateNodeGroupStackStub func(context.Context, string, string, bool) error
updateNodeGroupStackMutex sync.RWMutex
updateNodeGroupStackArgsForCall []struct {
arg1 context.Context
arg2 string
arg3 string
arg4 bool
}
updateNodeGroupStackReturns struct {
result1 error
}
updateNodeGroupStackReturnsOnCall map[int]struct {
result1 error
}
UpdateStackStub func(context.Context, manager.UpdateStackOptions) error
updateStackMutex sync.RWMutex
updateStackArgsForCall []struct {
arg1 context.Context
arg2 manager.UpdateStackOptions
}
updateStackReturns struct {
result1 error
}
updateStackReturnsOnCall map[int]struct {
result1 error
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeStackManager) AppendNewClusterStackResource(arg1 context.Context, arg2 bool, arg3 bool) (bool, error) {
fake.appendNewClusterStackResourceMutex.Lock()
ret, specificReturn := fake.appendNewClusterStackResourceReturnsOnCall[len(fake.appendNewClusterStackResourceArgsForCall)]
fake.appendNewClusterStackResourceArgsForCall = append(fake.appendNewClusterStackResourceArgsForCall, struct {
arg1 context.Context
arg2 bool
arg3 bool
}{arg1, arg2, arg3})
stub := fake.AppendNewClusterStackResourceStub
fakeReturns := fake.appendNewClusterStackResourceReturns
fake.recordInvocation("AppendNewClusterStackResource", []interface{}{arg1, arg2, arg3})
fake.appendNewClusterStackResourceMutex.Unlock()
if stub != nil {
return stub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1, ret.result2
}
return fakeReturns.result1, fakeReturns.result2
}
func (fake *FakeStackManager) AppendNewClusterStackResourceCallCount() int {
fake.appendNewClusterStackResourceMutex.RLock()
defer fake.appendNewClusterStackResourceMutex.RUnlock()
return len(fake.appendNewClusterStackResourceArgsForCall)
}
func (fake *FakeStackManager) AppendNewClusterStackResourceCalls(stub func(context.Context, bool, bool) (bool, error)) {
fake.appendNewClusterStackResourceMutex.Lock()
defer fake.appendNewClusterStackResourceMutex.Unlock()
fake.AppendNewClusterStackResourceStub = stub
}
func (fake *FakeStackManager) AppendNewClusterStackResourceArgsForCall(i int) (context.Context, bool, bool) {
fake.appendNewClusterStackResourceMutex.RLock()
defer fake.appendNewClusterStackResourceMutex.RUnlock()
argsForCall := fake.appendNewClusterStackResourceArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *FakeStackManager) AppendNewClusterStackResourceReturns(result1 bool, result2 error) {
fake.appendNewClusterStackResourceMutex.Lock()
defer fake.appendNewClusterStackResourceMutex.Unlock()
fake.AppendNewClusterStackResourceStub = nil
fake.appendNewClusterStackResourceReturns = struct {
result1 bool
result2 error
}{result1, result2}
}
func (fake *FakeStackManager) AppendNewClusterStackResourceReturnsOnCall(i int, result1 bool, result2 error) {
fake.appendNewClusterStackResourceMutex.Lock()
defer fake.appendNewClusterStackResourceMutex.Unlock()
fake.AppendNewClusterStackResourceStub = nil
if fake.appendNewClusterStackResourceReturnsOnCall == nil {
fake.appendNewClusterStackResourceReturnsOnCall = make(map[int]struct {
result1 bool
result2 error
})
}
fake.appendNewClusterStackResourceReturnsOnCall[i] = struct {
result1 bool
result2 error
}{result1, result2}
}
func (fake *FakeStackManager) ClusterHasDedicatedVPC(arg1 context.Context) (bool, error) {
fake.clusterHasDedicatedVPCMutex.Lock()
ret, specificReturn := fake.clusterHasDedicatedVPCReturnsOnCall[len(fake.clusterHasDedicatedVPCArgsForCall)]
fake.clusterHasDedicatedVPCArgsForCall = append(fake.clusterHasDedicatedVPCArgsForCall, struct {
arg1 context.Context
}{arg1})
stub := fake.ClusterHasDedicatedVPCStub
fakeReturns := fake.clusterHasDedicatedVPCReturns
fake.recordInvocation("ClusterHasDedicatedVPC", []interface{}{arg1})
fake.clusterHasDedicatedVPCMutex.Unlock()
if stub != nil {
return stub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
return fakeReturns.result1, fakeReturns.result2
}
func (fake *FakeStackManager) ClusterHasDedicatedVPCCallCount() int {
fake.clusterHasDedicatedVPCMutex.RLock()
defer fake.clusterHasDedicatedVPCMutex.RUnlock()
return len(fake.clusterHasDedicatedVPCArgsForCall)
}
func (fake *FakeStackManager) ClusterHasDedicatedVPCCalls(stub func(context.Context) (bool, error)) {
fake.clusterHasDedicatedVPCMutex.Lock()
defer fake.clusterHasDedicatedVPCMutex.Unlock()
fake.ClusterHasDedicatedVPCStub = stub
}
func (fake *FakeStackManager) ClusterHasDedicatedVPCArgsForCall(i int) context.Context {
fake.clusterHasDedicatedVPCMutex.RLock()
defer fake.clusterHasDedicatedVPCMutex.RUnlock()
argsForCall := fake.clusterHasDedicatedVPCArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeStackManager) ClusterHasDedicatedVPCReturns(result1 bool, result2 error) {
fake.clusterHasDedicatedVPCMutex.Lock()
defer fake.clusterHasDedicatedVPCMutex.Unlock()
fake.ClusterHasDedicatedVPCStub = nil
fake.clusterHasDedicatedVPCReturns = struct {
result1 bool
result2 error
}{result1, result2}
}
func (fake *FakeStackManager) ClusterHasDedicatedVPCReturnsOnCall(i int, result1 bool, result2 error) {
fake.clusterHasDedicatedVPCMutex.Lock()
defer fake.clusterHasDedicatedVPCMutex.Unlock()
fake.ClusterHasDedicatedVPCStub = nil
if fake.clusterHasDedicatedVPCReturnsOnCall == nil {
fake.clusterHasDedicatedVPCReturnsOnCall = make(map[int]struct {
result1 bool
result2 error
})
}
fake.clusterHasDedicatedVPCReturnsOnCall[i] = struct {
result1 bool
result2 error
}{result1, result2}
}
func (fake *FakeStackManager) CreateStack(arg1 context.Context, arg2 string, arg3 builder.ResourceSetReader, arg4 map[string]string, arg5 map[string]string, arg6 chan error) error {
fake.createStackMutex.Lock()
ret, specificReturn := fake.createStackReturnsOnCall[len(fake.createStackArgsForCall)]
fake.createStackArgsForCall = append(fake.createStackArgsForCall, struct {
arg1 context.Context
arg2 string
arg3 builder.ResourceSetReader
arg4 map[string]string
arg5 map[string]string
arg6 chan error
}{arg1, arg2, arg3, arg4, arg5, arg6})
stub := fake.CreateStackStub
fakeReturns := fake.createStackReturns
fake.recordInvocation("CreateStack", []interface{}{arg1, arg2, arg3, arg4, arg5, arg6})
fake.createStackMutex.Unlock()
if stub != nil {
return stub(arg1, arg2, arg3, arg4, arg5, arg6)
}
if specificReturn {
return ret.result1
}
return fakeReturns.result1
}
func (fake *FakeStackManager) CreateStackCallCount() int {
fake.createStackMutex.RLock()
defer fake.createStackMutex.RUnlock()
return len(fake.createStackArgsForCall)
}
func (fake *FakeStackManager) CreateStackCalls(stub func(context.Context, string, builder.ResourceSetReader, map[string]string, map[string]string, chan error) error) {
fake.createStackMutex.Lock()
defer fake.createStackMutex.Unlock()
fake.CreateStackStub = stub
}
func (fake *FakeStackManager) CreateStackArgsForCall(i int) (context.Context, string, builder.ResourceSetReader, map[string]string, map[string]string, chan error) {
fake.createStackMutex.RLock()
defer fake.createStackMutex.RUnlock()
argsForCall := fake.createStackArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5, argsForCall.arg6
}
func (fake *FakeStackManager) CreateStackReturns(result1 error) {
fake.createStackMutex.Lock()
defer fake.createStackMutex.Unlock()
fake.CreateStackStub = nil
fake.createStackReturns = struct {
result1 error
}{result1}
}
func (fake *FakeStackManager) CreateStackReturnsOnCall(i int, result1 error) {
fake.createStackMutex.Lock()
defer fake.createStackMutex.Unlock()