-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathactions.generated.go
1107 lines (926 loc) · 46.4 KB
/
actions.generated.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
//
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Copyright holder is ArangoDB GmbH, Cologne, Germany
//
package v1
import "time"
const (
// Timeouts
// ActionsDefaultTimeout define default timeout
ActionsDefaultTimeout time.Duration = 600 * time.Second // 10m0s
// ActionAddMemberDefaultTimeout define default timeout for action ActionAddMember
ActionAddMemberDefaultTimeout time.Duration = 600 * time.Second // 10m0s
// ActionAppendTLSCACertificateDefaultTimeout define default timeout for action ActionAppendTLSCACertificate
ActionAppendTLSCACertificateDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionArangoMemberUpdatePodSpecDefaultTimeout define default timeout for action ActionArangoMemberUpdatePodSpec
ActionArangoMemberUpdatePodSpecDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionArangoMemberUpdatePodStatusDefaultTimeout define default timeout for action ActionArangoMemberUpdatePodStatus
ActionArangoMemberUpdatePodStatusDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionBackupRestoreDefaultTimeout define default timeout for action ActionBackupRestore
ActionBackupRestoreDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionBackupRestoreCleanDefaultTimeout define default timeout for action ActionBackupRestoreClean
ActionBackupRestoreCleanDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionBootstrapSetPasswordDefaultTimeout define default timeout for action ActionBootstrapSetPassword
ActionBootstrapSetPasswordDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionBootstrapUpdateDefaultTimeout define default timeout for action ActionBootstrapUpdate
ActionBootstrapUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionCleanMemberServiceDefaultTimeout define default timeout for action ActionCleanMemberService
ActionCleanMemberServiceDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionCleanOutMemberDefaultTimeout define default timeout for action ActionCleanOutMember
ActionCleanOutMemberDefaultTimeout time.Duration = 172800 * time.Second // 48h0m0s
// ActionCleanTLSCACertificateDefaultTimeout define default timeout for action ActionCleanTLSCACertificate
ActionCleanTLSCACertificateDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionCleanTLSKeyfileCertificateDefaultTimeout define default timeout for action ActionCleanTLSKeyfileCertificate
ActionCleanTLSKeyfileCertificateDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionClusterMemberCleanupDefaultTimeout define default timeout for action ActionClusterMemberCleanup
ActionClusterMemberCleanupDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionDisableClusterScalingDefaultTimeout define default timeout for action ActionDisableClusterScaling
ActionDisableClusterScalingDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionDisableMaintenanceDefaultTimeout define default timeout for action ActionDisableMaintenance
ActionDisableMaintenanceDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionDisableMemberMaintenanceDefaultTimeout define default timeout for action ActionDisableMemberMaintenance
ActionDisableMemberMaintenanceDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEnableClusterScalingDefaultTimeout define default timeout for action ActionEnableClusterScaling
ActionEnableClusterScalingDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEnableMaintenanceDefaultTimeout define default timeout for action ActionEnableMaintenance
ActionEnableMaintenanceDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEnableMemberMaintenanceDefaultTimeout define default timeout for action ActionEnableMemberMaintenance
ActionEnableMemberMaintenanceDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEncryptionKeyAddDefaultTimeout define default timeout for action ActionEncryptionKeyAdd
ActionEncryptionKeyAddDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEncryptionKeyPropagatedDefaultTimeout define default timeout for action ActionEncryptionKeyPropagated
ActionEncryptionKeyPropagatedDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEncryptionKeyRefreshDefaultTimeout define default timeout for action ActionEncryptionKeyRefresh
ActionEncryptionKeyRefreshDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEncryptionKeyRemoveDefaultTimeout define default timeout for action ActionEncryptionKeyRemove
ActionEncryptionKeyRemoveDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEncryptionKeyStatusUpdateDefaultTimeout define default timeout for action ActionEncryptionKeyStatusUpdate
ActionEncryptionKeyStatusUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionEnforceResignLeadershipDefaultTimeout define default timeout for action ActionEnforceResignLeadership
ActionEnforceResignLeadershipDefaultTimeout time.Duration = 2700 * time.Second // 45m0s
// ActionEnsureSecuredResignLeadershipDefaultTimeout define default timeout for action ActionEnsureSecuredResignLeadership
ActionEnsureSecuredResignLeadershipDefaultTimeout time.Duration = 600 * time.Second // 10m0s
// ActionIdleDefaultTimeout define default timeout for action ActionIdle
ActionIdleDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionJWTAddDefaultTimeout define default timeout for action ActionJWTAdd
ActionJWTAddDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionJWTCleanDefaultTimeout define default timeout for action ActionJWTClean
ActionJWTCleanDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionJWTPropagatedDefaultTimeout define default timeout for action ActionJWTPropagated
ActionJWTPropagatedDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionJWTRefreshDefaultTimeout define default timeout for action ActionJWTRefresh
ActionJWTRefreshDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionJWTSetActiveDefaultTimeout define default timeout for action ActionJWTSetActive
ActionJWTSetActiveDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionJWTStatusUpdateDefaultTimeout define default timeout for action ActionJWTStatusUpdate
ActionJWTStatusUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionKillMemberPodDefaultTimeout define default timeout for action ActionKillMemberPod
ActionKillMemberPodDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionLicenseSetDefaultTimeout define default timeout for action ActionLicenseSet
ActionLicenseSetDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionMarkToRemoveMemberDefaultTimeout define default timeout for action ActionMarkToRemoveMember
ActionMarkToRemoveMemberDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionMemberPhaseUpdateDefaultTimeout define default timeout for action ActionMemberPhaseUpdate
ActionMemberPhaseUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionMemberRIDUpdateDefaultTimeout define default timeout for action ActionMemberRIDUpdate
ActionMemberRIDUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionMemberStatusSyncDefaultTimeout define default timeout for action ActionMemberStatusSync
ActionMemberStatusSyncDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionPVCResizeDefaultTimeout define default timeout for action ActionPVCResize
ActionPVCResizeDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionPVCResizedDefaultTimeout define default timeout for action ActionPVCResized
ActionPVCResizedDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionPlaceHolderDefaultTimeout define default timeout for action ActionPlaceHolder
ActionPlaceHolderDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebalancerCheckDefaultTimeout define default timeout for action ActionRebalancerCheck
ActionRebalancerCheckDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebalancerCheckV2DefaultTimeout define default timeout for action ActionRebalancerCheckV2
ActionRebalancerCheckV2DefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebalancerCleanDefaultTimeout define default timeout for action ActionRebalancerClean
ActionRebalancerCleanDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebalancerCleanV2DefaultTimeout define default timeout for action ActionRebalancerCleanV2
ActionRebalancerCleanV2DefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebalancerGenerateDefaultTimeout define default timeout for action ActionRebalancerGenerate
ActionRebalancerGenerateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebalancerGenerateV2DefaultTimeout define default timeout for action ActionRebalancerGenerateV2
ActionRebalancerGenerateV2DefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRebuildOutSyncedShardsDefaultTimeout define default timeout for action ActionRebuildOutSyncedShards
ActionRebuildOutSyncedShardsDefaultTimeout time.Duration = 86400 * time.Second // 24h0m0s
// ActionRecreateMemberDefaultTimeout define default timeout for action ActionRecreateMember
ActionRecreateMemberDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionRefreshTLSCADefaultTimeout define default timeout for action ActionRefreshTLSCA
ActionRefreshTLSCADefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionRefreshTLSKeyfileCertificateDefaultTimeout define default timeout for action ActionRefreshTLSKeyfileCertificate
ActionRefreshTLSKeyfileCertificateDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionRemoveMemberDefaultTimeout define default timeout for action ActionRemoveMember
ActionRemoveMemberDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionRemoveMemberPVCDefaultTimeout define default timeout for action ActionRemoveMemberPVC
ActionRemoveMemberPVCDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionRenewTLSCACertificateDefaultTimeout define default timeout for action ActionRenewTLSCACertificate
ActionRenewTLSCACertificateDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionRenewTLSCertificateDefaultTimeout define default timeout for action ActionRenewTLSCertificate
ActionRenewTLSCertificateDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionResignLeadershipDefaultTimeout define default timeout for action ActionResignLeadership
ActionResignLeadershipDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionResourceSyncDefaultTimeout define default timeout for action ActionResourceSync
ActionResourceSyncDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRotateMemberDefaultTimeout define default timeout for action ActionRotateMember
ActionRotateMemberDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionRotateStartMemberDefaultTimeout define default timeout for action ActionRotateStartMember
ActionRotateStartMemberDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionRotateStopMemberDefaultTimeout define default timeout for action ActionRotateStopMember
ActionRotateStopMemberDefaultTimeout time.Duration = 900 * time.Second // 15m0s
// ActionRuntimeContainerArgsLogLevelUpdateDefaultTimeout define default timeout for action ActionRuntimeContainerArgsLogLevelUpdate
ActionRuntimeContainerArgsLogLevelUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRuntimeContainerImageUpdateDefaultTimeout define default timeout for action ActionRuntimeContainerImageUpdate
ActionRuntimeContainerImageUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionRuntimeContainerSyncTolerationsDefaultTimeout define default timeout for action ActionRuntimeContainerSyncTolerations
ActionRuntimeContainerSyncTolerationsDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionSetConditionDefaultTimeout define default timeout for action ActionSetCondition
ActionSetConditionDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionSetConditionV2DefaultTimeout define default timeout for action ActionSetConditionV2
ActionSetConditionV2DefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionSetCurrentImageDefaultTimeout define default timeout for action ActionSetCurrentImage
ActionSetCurrentImageDefaultTimeout time.Duration = 21600 * time.Second // 6h0m0s
// ActionSetCurrentMemberArchDefaultTimeout define default timeout for action ActionSetCurrentMemberArch
ActionSetCurrentMemberArchDefaultTimeout time.Duration = 600 * time.Second // 10m0s
// ActionSetMaintenanceConditionDefaultTimeout define default timeout for action ActionSetMaintenanceCondition
ActionSetMaintenanceConditionDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionSetMemberConditionDefaultTimeout define default timeout for action ActionSetMemberCondition
ActionSetMemberConditionDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionSetMemberConditionV2DefaultTimeout define default timeout for action ActionSetMemberConditionV2
ActionSetMemberConditionV2DefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionSetMemberCurrentImageDefaultTimeout define default timeout for action ActionSetMemberCurrentImage
ActionSetMemberCurrentImageDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionShutdownMemberDefaultTimeout define default timeout for action ActionShutdownMember
ActionShutdownMemberDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionTLSKeyStatusUpdateDefaultTimeout define default timeout for action ActionTLSKeyStatusUpdate
ActionTLSKeyStatusUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionTLSPropagatedDefaultTimeout define default timeout for action ActionTLSPropagated
ActionTLSPropagatedDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionTimezoneSecretSetDefaultTimeout define default timeout for action ActionTimezoneSecretSet
ActionTimezoneSecretSetDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionTopologyDisableDefaultTimeout define default timeout for action ActionTopologyDisable
ActionTopologyDisableDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionTopologyEnableDefaultTimeout define default timeout for action ActionTopologyEnable
ActionTopologyEnableDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionTopologyMemberAssignmentDefaultTimeout define default timeout for action ActionTopologyMemberAssignment
ActionTopologyMemberAssignmentDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionTopologyZonesUpdateDefaultTimeout define default timeout for action ActionTopologyZonesUpdate
ActionTopologyZonesUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionUpToDateUpdateDefaultTimeout define default timeout for action ActionUpToDateUpdate
ActionUpToDateUpdateDefaultTimeout time.Duration = ActionsDefaultTimeout
// ActionUpdateTLSSNIDefaultTimeout define default timeout for action ActionUpdateTLSSNI
ActionUpdateTLSSNIDefaultTimeout time.Duration = 600 * time.Second // 10m0s
// ActionUpgradeMemberDefaultTimeout define default timeout for action ActionUpgradeMember
ActionUpgradeMemberDefaultTimeout time.Duration = 21600 * time.Second // 6h0m0s
// ActionWaitForMemberInSyncDefaultTimeout define default timeout for action ActionWaitForMemberInSync
ActionWaitForMemberInSyncDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionWaitForMemberReadyDefaultTimeout define default timeout for action ActionWaitForMemberReady
ActionWaitForMemberReadyDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// ActionWaitForMemberUpDefaultTimeout define default timeout for action ActionWaitForMemberUp
ActionWaitForMemberUpDefaultTimeout time.Duration = 1800 * time.Second // 30m0s
// Actions
// ActionTypeAddMember in scopes Normal. Adds new member to the Member list
ActionTypeAddMember ActionType = "AddMember"
// ActionTypeAppendTLSCACertificate in scopes Normal. Append Certificate into CA TrustStore
ActionTypeAppendTLSCACertificate ActionType = "AppendTLSCACertificate"
// ActionTypeArangoMemberUpdatePodSpec in scopes High. Propagate Member Pod spec (requested)
ActionTypeArangoMemberUpdatePodSpec ActionType = "ArangoMemberUpdatePodSpec"
// ActionTypeArangoMemberUpdatePodStatus in scopes High. Propagate Member Pod status (current)
ActionTypeArangoMemberUpdatePodStatus ActionType = "ArangoMemberUpdatePodStatus"
// ActionTypeBackupRestore in scopes Normal. Restore selected Backup
ActionTypeBackupRestore ActionType = "BackupRestore"
// ActionTypeBackupRestoreClean in scopes Normal. Clean restore status in case of restore spec change
ActionTypeBackupRestoreClean ActionType = "BackupRestoreClean"
// ActionTypeBootstrapSetPassword in scopes Normal. Change password during bootstrap procedure
ActionTypeBootstrapSetPassword ActionType = "BootstrapSetPassword"
// ActionTypeBootstrapUpdate in scopes Normal. Update bootstrap status
ActionTypeBootstrapUpdate ActionType = "BootstrapUpdate"
// ActionTypeCleanMemberService in scopes Normal. Removes Server Service
ActionTypeCleanMemberService ActionType = "CleanMemberService"
// ActionTypeCleanOutMember in scopes Normal. Run the CleanOut job on member
ActionTypeCleanOutMember ActionType = "CleanOutMember"
// ActionTypeCleanTLSCACertificate in scopes Normal. Remove Certificate from CA TrustStore
ActionTypeCleanTLSCACertificate ActionType = "CleanTLSCACertificate"
// ActionTypeCleanTLSKeyfileCertificate in scopes Normal. Remove old TLS certificate from server
ActionTypeCleanTLSKeyfileCertificate ActionType = "CleanTLSKeyfileCertificate"
// ActionTypeClusterMemberCleanup in scopes Normal. Remove member from Cluster if it is gone already (Coordinators)
ActionTypeClusterMemberCleanup ActionType = "ClusterMemberCleanup"
// ActionTypeDisableClusterScaling in scopes Normal. Disable Cluster Scaling integration
//
// Deprecated: action is not used anymore
ActionTypeDisableClusterScaling ActionType = "DisableClusterScaling"
// ActionTypeDisableMaintenance in scopes Normal. Disable ArangoDB maintenance mode
ActionTypeDisableMaintenance ActionType = "DisableMaintenance"
// ActionTypeDisableMemberMaintenance in scopes Normal. Disable ArangoDB DBServer maintenance mode
ActionTypeDisableMemberMaintenance ActionType = "DisableMemberMaintenance"
// ActionTypeEnableClusterScaling in scopes Normal. Enable Cluster Scaling integration
//
// Deprecated: action is not used anymore
ActionTypeEnableClusterScaling ActionType = "EnableClusterScaling"
// ActionTypeEnableMaintenance in scopes Normal. Enable ArangoDB maintenance mode
ActionTypeEnableMaintenance ActionType = "EnableMaintenance"
// ActionTypeEnableMemberMaintenance in scopes Normal. Enable ArangoDB DBServer maintenance mode
ActionTypeEnableMemberMaintenance ActionType = "EnableMemberMaintenance"
// ActionTypeEncryptionKeyAdd in scopes Normal. Add the encryption key to the pool
ActionTypeEncryptionKeyAdd ActionType = "EncryptionKeyAdd"
// ActionTypeEncryptionKeyPropagated in scopes Normal. Update condition of encryption propagation
ActionTypeEncryptionKeyPropagated ActionType = "EncryptionKeyPropagated"
// ActionTypeEncryptionKeyRefresh in scopes Normal. Refresh the encryption keys on member
ActionTypeEncryptionKeyRefresh ActionType = "EncryptionKeyRefresh"
// ActionTypeEncryptionKeyRemove in scopes Normal. Remove the encryption key to the pool
ActionTypeEncryptionKeyRemove ActionType = "EncryptionKeyRemove"
// ActionTypeEncryptionKeyStatusUpdate in scopes Normal. Update status of encryption propagation
ActionTypeEncryptionKeyStatusUpdate ActionType = "EncryptionKeyStatusUpdate"
// ActionTypeEnforceResignLeadership in scopes Normal. Run the ResignLeadership job on DBServer and checks data compatibility after
ActionTypeEnforceResignLeadership ActionType = "EnforceResignLeadership"
// ActionTypeEnsureSecuredResignLeadership in scopes Normal. Ensures that data is still replicated on other servers
ActionTypeEnsureSecuredResignLeadership ActionType = "EnsureSecuredResignLeadership"
// ActionTypeIdle in scopes Normal. Define idle operation in case if preconditions are not meet
ActionTypeIdle ActionType = "Idle"
// ActionTypeJWTAdd in scopes Normal. Adds new JWT to the pool
ActionTypeJWTAdd ActionType = "JWTAdd"
// ActionTypeJWTClean in scopes Normal. Remove JWT key from the pool
ActionTypeJWTClean ActionType = "JWTClean"
// ActionTypeJWTPropagated in scopes Normal. Update condition of JWT propagation
ActionTypeJWTPropagated ActionType = "JWTPropagated"
// ActionTypeJWTRefresh in scopes Normal. Refresh current JWT secrets on the member
ActionTypeJWTRefresh ActionType = "JWTRefresh"
// ActionTypeJWTSetActive in scopes Normal. Change active JWT key on the cluster
ActionTypeJWTSetActive ActionType = "JWTSetActive"
// ActionTypeJWTStatusUpdate in scopes Normal. Update status of JWT propagation
ActionTypeJWTStatusUpdate ActionType = "JWTStatusUpdate"
// ActionTypeKillMemberPod in scopes High and Normal. Execute Delete on Pod (put pod in Terminating state)
ActionTypeKillMemberPod ActionType = "KillMemberPod"
// ActionTypeLicenseSet in scopes Normal. Update Cluster license (3.9+)
ActionTypeLicenseSet ActionType = "LicenseSet"
// ActionTypeMarkToRemoveMember in scopes Normal. Marks member to be removed. Used when member Pod is annotated with replace annotation
ActionTypeMarkToRemoveMember ActionType = "MarkToRemoveMember"
// ActionTypeMemberPhaseUpdate in scopes High. Change member phase
ActionTypeMemberPhaseUpdate ActionType = "MemberPhaseUpdate"
// ActionTypeMemberRIDUpdate in scopes High. Update Run ID of member
//
// Deprecated: action is not used anymore
ActionTypeMemberRIDUpdate ActionType = "MemberRIDUpdate"
// ActionTypeMemberStatusSync in scopes High. Sync ArangoMember Status with ArangoDeployment Status, to keep Member information up to date
ActionTypeMemberStatusSync ActionType = "MemberStatusSync"
// ActionTypePVCResize in scopes Normal. Start the resize procedure. Updates PVC Requests field
ActionTypePVCResize ActionType = "PVCResize"
// ActionTypePVCResized in scopes Normal. Waits for PVC resize to be completed
ActionTypePVCResized ActionType = "PVCResized"
// ActionTypePlaceHolder in scopes Normal. Empty placeholder action
ActionTypePlaceHolder ActionType = "PlaceHolder"
// ActionTypeRebalancerCheck in scopes Normal. Check Rebalancer job progress
ActionTypeRebalancerCheck ActionType = "RebalancerCheck"
// ActionTypeRebalancerCheckV2 in scopes Normal. Check Rebalancer job progress
ActionTypeRebalancerCheckV2 ActionType = "RebalancerCheckV2"
// ActionTypeRebalancerClean in scopes Normal. Cleans Rebalancer jobs
ActionTypeRebalancerClean ActionType = "RebalancerClean"
// ActionTypeRebalancerCleanV2 in scopes Normal. Cleans Rebalancer jobs
ActionTypeRebalancerCleanV2 ActionType = "RebalancerCleanV2"
// ActionTypeRebalancerGenerate in scopes Normal. Generates the Rebalancer plan
ActionTypeRebalancerGenerate ActionType = "RebalancerGenerate"
// ActionTypeRebalancerGenerateV2 in scopes Normal. Generates the Rebalancer plan
ActionTypeRebalancerGenerateV2 ActionType = "RebalancerGenerateV2"
// ActionTypeRebuildOutSyncedShards in scopes High. Run Rebuild Out Synced Shards procedure for DBServers
ActionTypeRebuildOutSyncedShards ActionType = "RebuildOutSyncedShards"
// ActionTypeRecreateMember in scopes Normal. Recreate member with same ID and Data
ActionTypeRecreateMember ActionType = "RecreateMember"
// ActionTypeRefreshTLSCA in scopes Normal. Refresh internal CA
ActionTypeRefreshTLSCA ActionType = "RefreshTLSCA"
// ActionTypeRefreshTLSKeyfileCertificate in scopes Normal. Recreate Server TLS Certificate secret
ActionTypeRefreshTLSKeyfileCertificate ActionType = "RefreshTLSKeyfileCertificate"
// ActionTypeRemoveMember in scopes Normal. Removes member from the Cluster and Status
ActionTypeRemoveMember ActionType = "RemoveMember"
// ActionTypeRemoveMemberPVC in scopes Normal. Removes member PVC and enforce recreate procedure
ActionTypeRemoveMemberPVC ActionType = "RemoveMemberPVC"
// ActionTypeRenewTLSCACertificate in scopes Normal. Recreate Managed CA secret
ActionTypeRenewTLSCACertificate ActionType = "RenewTLSCACertificate"
// ActionTypeRenewTLSCertificate in scopes Normal. Recreate Server TLS Certificate secret
ActionTypeRenewTLSCertificate ActionType = "RenewTLSCertificate"
// ActionTypeResignLeadership in scopes Normal. Run the ResignLeadership job on DBServer
ActionTypeResignLeadership ActionType = "ResignLeadership"
// ActionTypeResourceSync in scopes Normal. Runs the Resource sync
ActionTypeResourceSync ActionType = "ResourceSync"
// ActionTypeRotateMember in scopes Normal. Waits for Pod restart and recreation
ActionTypeRotateMember ActionType = "RotateMember"
// ActionTypeRotateStartMember in scopes Normal. Start member rotation. After this action member is down
ActionTypeRotateStartMember ActionType = "RotateStartMember"
// ActionTypeRotateStopMember in scopes Normal. Finalize member rotation. After this action member is started back
ActionTypeRotateStopMember ActionType = "RotateStopMember"
// ActionTypeRuntimeContainerArgsLogLevelUpdate in scopes Normal. Change ArangoDB Member log levels in runtime
ActionTypeRuntimeContainerArgsLogLevelUpdate ActionType = "RuntimeContainerArgsLogLevelUpdate"
// ActionTypeRuntimeContainerImageUpdate in scopes Normal. Update Container Image in runtime
ActionTypeRuntimeContainerImageUpdate ActionType = "RuntimeContainerImageUpdate"
// ActionTypeRuntimeContainerSyncTolerations in scopes Normal. Update Pod Tolerations in runtime
ActionTypeRuntimeContainerSyncTolerations ActionType = "RuntimeContainerSyncTolerations"
// ActionTypeSetCondition in scopes High. Set deployment condition
//
// Deprecated: action is not used anymore
ActionTypeSetCondition ActionType = "SetCondition"
// ActionTypeSetConditionV2 in scopes High. Set deployment condition
ActionTypeSetConditionV2 ActionType = "SetConditionV2"
// ActionTypeSetCurrentImage in scopes Normal. Update deployment current image after image discovery
ActionTypeSetCurrentImage ActionType = "SetCurrentImage"
// ActionTypeSetCurrentMemberArch in scopes Normal. Set current member architecture
ActionTypeSetCurrentMemberArch ActionType = "SetCurrentMemberArch"
// ActionTypeSetMaintenanceCondition in scopes Normal. Update ArangoDB maintenance condition
ActionTypeSetMaintenanceCondition ActionType = "SetMaintenanceCondition"
// ActionTypeSetMemberCondition in scopes High. Set member condition
//
// Deprecated: action is not used anymore
ActionTypeSetMemberCondition ActionType = "SetMemberCondition"
// ActionTypeSetMemberConditionV2 in scopes High. Set member condition
ActionTypeSetMemberConditionV2 ActionType = "SetMemberConditionV2"
// ActionTypeSetMemberCurrentImage in scopes Normal. Update Member current image
ActionTypeSetMemberCurrentImage ActionType = "SetMemberCurrentImage"
// ActionTypeShutdownMember in scopes Normal. Sends Shutdown requests and waits for container to be stopped
ActionTypeShutdownMember ActionType = "ShutdownMember"
// ActionTypeTLSKeyStatusUpdate in scopes Normal. Update Status of TLS propagation process
ActionTypeTLSKeyStatusUpdate ActionType = "TLSKeyStatusUpdate"
// ActionTypeTLSPropagated in scopes Normal. Update TLS propagation condition
ActionTypeTLSPropagated ActionType = "TLSPropagated"
// ActionTypeTimezoneSecretSet in scopes Normal. Set timezone details in cluster
ActionTypeTimezoneSecretSet ActionType = "TimezoneSecretSet"
// ActionTypeTopologyDisable in scopes Normal. Disable TopologyAwareness
ActionTypeTopologyDisable ActionType = "TopologyDisable"
// ActionTypeTopologyEnable in scopes Normal. Enable TopologyAwareness
ActionTypeTopologyEnable ActionType = "TopologyEnable"
// ActionTypeTopologyMemberAssignment in scopes Normal. Update TopologyAwareness Members assignments
ActionTypeTopologyMemberAssignment ActionType = "TopologyMemberAssignment"
// ActionTypeTopologyZonesUpdate in scopes Normal. Update TopologyAwareness Zones info
ActionTypeTopologyZonesUpdate ActionType = "TopologyZonesUpdate"
// ActionTypeUpToDateUpdate in scopes Normal. Update UpToDate condition
ActionTypeUpToDateUpdate ActionType = "UpToDateUpdate"
// ActionTypeUpdateTLSSNI in scopes Normal. Update certificate in SNI
ActionTypeUpdateTLSSNI ActionType = "UpdateTLSSNI"
// ActionTypeUpgradeMember in scopes Normal. Run the Upgrade procedure on member
ActionTypeUpgradeMember ActionType = "UpgradeMember"
// ActionTypeWaitForMemberInSync in scopes Normal. Wait for member to be in sync. In case of DBServer waits for shards. In case of Agents to catch-up on Agency index
ActionTypeWaitForMemberInSync ActionType = "WaitForMemberInSync"
// ActionTypeWaitForMemberReady in scopes Normal. Wait for member Ready condition
ActionTypeWaitForMemberReady ActionType = "WaitForMemberReady"
// ActionTypeWaitForMemberUp in scopes Normal. Wait for member to be responsive
ActionTypeWaitForMemberUp ActionType = "WaitForMemberUp"
)
func (a ActionType) DefaultTimeout() time.Duration {
switch a {
case ActionTypeAddMember:
return ActionAddMemberDefaultTimeout
case ActionTypeAppendTLSCACertificate:
return ActionAppendTLSCACertificateDefaultTimeout
case ActionTypeArangoMemberUpdatePodSpec:
return ActionArangoMemberUpdatePodSpecDefaultTimeout
case ActionTypeArangoMemberUpdatePodStatus:
return ActionArangoMemberUpdatePodStatusDefaultTimeout
case ActionTypeBackupRestore:
return ActionBackupRestoreDefaultTimeout
case ActionTypeBackupRestoreClean:
return ActionBackupRestoreCleanDefaultTimeout
case ActionTypeBootstrapSetPassword:
return ActionBootstrapSetPasswordDefaultTimeout
case ActionTypeBootstrapUpdate:
return ActionBootstrapUpdateDefaultTimeout
case ActionTypeCleanMemberService:
return ActionCleanMemberServiceDefaultTimeout
case ActionTypeCleanOutMember:
return ActionCleanOutMemberDefaultTimeout
case ActionTypeCleanTLSCACertificate:
return ActionCleanTLSCACertificateDefaultTimeout
case ActionTypeCleanTLSKeyfileCertificate:
return ActionCleanTLSKeyfileCertificateDefaultTimeout
case ActionTypeClusterMemberCleanup:
return ActionClusterMemberCleanupDefaultTimeout
case ActionTypeDisableClusterScaling:
return ActionDisableClusterScalingDefaultTimeout
case ActionTypeDisableMaintenance:
return ActionDisableMaintenanceDefaultTimeout
case ActionTypeDisableMemberMaintenance:
return ActionDisableMemberMaintenanceDefaultTimeout
case ActionTypeEnableClusterScaling:
return ActionEnableClusterScalingDefaultTimeout
case ActionTypeEnableMaintenance:
return ActionEnableMaintenanceDefaultTimeout
case ActionTypeEnableMemberMaintenance:
return ActionEnableMemberMaintenanceDefaultTimeout
case ActionTypeEncryptionKeyAdd:
return ActionEncryptionKeyAddDefaultTimeout
case ActionTypeEncryptionKeyPropagated:
return ActionEncryptionKeyPropagatedDefaultTimeout
case ActionTypeEncryptionKeyRefresh:
return ActionEncryptionKeyRefreshDefaultTimeout
case ActionTypeEncryptionKeyRemove:
return ActionEncryptionKeyRemoveDefaultTimeout
case ActionTypeEncryptionKeyStatusUpdate:
return ActionEncryptionKeyStatusUpdateDefaultTimeout
case ActionTypeEnforceResignLeadership:
return ActionEnforceResignLeadershipDefaultTimeout
case ActionTypeEnsureSecuredResignLeadership:
return ActionEnsureSecuredResignLeadershipDefaultTimeout
case ActionTypeIdle:
return ActionIdleDefaultTimeout
case ActionTypeJWTAdd:
return ActionJWTAddDefaultTimeout
case ActionTypeJWTClean:
return ActionJWTCleanDefaultTimeout
case ActionTypeJWTPropagated:
return ActionJWTPropagatedDefaultTimeout
case ActionTypeJWTRefresh:
return ActionJWTRefreshDefaultTimeout
case ActionTypeJWTSetActive:
return ActionJWTSetActiveDefaultTimeout
case ActionTypeJWTStatusUpdate:
return ActionJWTStatusUpdateDefaultTimeout
case ActionTypeKillMemberPod:
return ActionKillMemberPodDefaultTimeout
case ActionTypeLicenseSet:
return ActionLicenseSetDefaultTimeout
case ActionTypeMarkToRemoveMember:
return ActionMarkToRemoveMemberDefaultTimeout
case ActionTypeMemberPhaseUpdate:
return ActionMemberPhaseUpdateDefaultTimeout
case ActionTypeMemberRIDUpdate:
return ActionMemberRIDUpdateDefaultTimeout
case ActionTypeMemberStatusSync:
return ActionMemberStatusSyncDefaultTimeout
case ActionTypePVCResize:
return ActionPVCResizeDefaultTimeout
case ActionTypePVCResized:
return ActionPVCResizedDefaultTimeout
case ActionTypePlaceHolder:
return ActionPlaceHolderDefaultTimeout
case ActionTypeRebalancerCheck:
return ActionRebalancerCheckDefaultTimeout
case ActionTypeRebalancerCheckV2:
return ActionRebalancerCheckV2DefaultTimeout
case ActionTypeRebalancerClean:
return ActionRebalancerCleanDefaultTimeout
case ActionTypeRebalancerCleanV2:
return ActionRebalancerCleanV2DefaultTimeout
case ActionTypeRebalancerGenerate:
return ActionRebalancerGenerateDefaultTimeout
case ActionTypeRebalancerGenerateV2:
return ActionRebalancerGenerateV2DefaultTimeout
case ActionTypeRebuildOutSyncedShards:
return ActionRebuildOutSyncedShardsDefaultTimeout
case ActionTypeRecreateMember:
return ActionRecreateMemberDefaultTimeout
case ActionTypeRefreshTLSCA:
return ActionRefreshTLSCADefaultTimeout
case ActionTypeRefreshTLSKeyfileCertificate:
return ActionRefreshTLSKeyfileCertificateDefaultTimeout
case ActionTypeRemoveMember:
return ActionRemoveMemberDefaultTimeout
case ActionTypeRemoveMemberPVC:
return ActionRemoveMemberPVCDefaultTimeout
case ActionTypeRenewTLSCACertificate:
return ActionRenewTLSCACertificateDefaultTimeout
case ActionTypeRenewTLSCertificate:
return ActionRenewTLSCertificateDefaultTimeout
case ActionTypeResignLeadership:
return ActionResignLeadershipDefaultTimeout
case ActionTypeResourceSync:
return ActionResourceSyncDefaultTimeout
case ActionTypeRotateMember:
return ActionRotateMemberDefaultTimeout
case ActionTypeRotateStartMember:
return ActionRotateStartMemberDefaultTimeout
case ActionTypeRotateStopMember:
return ActionRotateStopMemberDefaultTimeout
case ActionTypeRuntimeContainerArgsLogLevelUpdate:
return ActionRuntimeContainerArgsLogLevelUpdateDefaultTimeout
case ActionTypeRuntimeContainerImageUpdate:
return ActionRuntimeContainerImageUpdateDefaultTimeout
case ActionTypeRuntimeContainerSyncTolerations:
return ActionRuntimeContainerSyncTolerationsDefaultTimeout
case ActionTypeSetCondition:
return ActionSetConditionDefaultTimeout
case ActionTypeSetConditionV2:
return ActionSetConditionV2DefaultTimeout
case ActionTypeSetCurrentImage:
return ActionSetCurrentImageDefaultTimeout
case ActionTypeSetCurrentMemberArch:
return ActionSetCurrentMemberArchDefaultTimeout
case ActionTypeSetMaintenanceCondition:
return ActionSetMaintenanceConditionDefaultTimeout
case ActionTypeSetMemberCondition:
return ActionSetMemberConditionDefaultTimeout
case ActionTypeSetMemberConditionV2:
return ActionSetMemberConditionV2DefaultTimeout
case ActionTypeSetMemberCurrentImage:
return ActionSetMemberCurrentImageDefaultTimeout
case ActionTypeShutdownMember:
return ActionShutdownMemberDefaultTimeout
case ActionTypeTLSKeyStatusUpdate:
return ActionTLSKeyStatusUpdateDefaultTimeout
case ActionTypeTLSPropagated:
return ActionTLSPropagatedDefaultTimeout
case ActionTypeTimezoneSecretSet:
return ActionTimezoneSecretSetDefaultTimeout
case ActionTypeTopologyDisable:
return ActionTopologyDisableDefaultTimeout
case ActionTypeTopologyEnable:
return ActionTopologyEnableDefaultTimeout
case ActionTypeTopologyMemberAssignment:
return ActionTopologyMemberAssignmentDefaultTimeout
case ActionTypeTopologyZonesUpdate:
return ActionTopologyZonesUpdateDefaultTimeout
case ActionTypeUpToDateUpdate:
return ActionUpToDateUpdateDefaultTimeout
case ActionTypeUpdateTLSSNI:
return ActionUpdateTLSSNIDefaultTimeout
case ActionTypeUpgradeMember:
return ActionUpgradeMemberDefaultTimeout
case ActionTypeWaitForMemberInSync:
return ActionWaitForMemberInSyncDefaultTimeout
case ActionTypeWaitForMemberReady:
return ActionWaitForMemberReadyDefaultTimeout
case ActionTypeWaitForMemberUp:
return ActionWaitForMemberUpDefaultTimeout
default:
return ActionsDefaultTimeout
}
}
// Priority returns action priority
func (a ActionType) Priority() ActionPriority {
switch a {
case ActionTypeAddMember:
return ActionPriorityNormal
case ActionTypeAppendTLSCACertificate:
return ActionPriorityNormal
case ActionTypeArangoMemberUpdatePodSpec:
return ActionPriorityHigh
case ActionTypeArangoMemberUpdatePodStatus:
return ActionPriorityHigh
case ActionTypeBackupRestore:
return ActionPriorityNormal
case ActionTypeBackupRestoreClean:
return ActionPriorityNormal
case ActionTypeBootstrapSetPassword:
return ActionPriorityNormal
case ActionTypeBootstrapUpdate:
return ActionPriorityNormal
case ActionTypeCleanMemberService:
return ActionPriorityNormal
case ActionTypeCleanOutMember:
return ActionPriorityNormal
case ActionTypeCleanTLSCACertificate:
return ActionPriorityNormal
case ActionTypeCleanTLSKeyfileCertificate:
return ActionPriorityNormal
case ActionTypeClusterMemberCleanup:
return ActionPriorityNormal
case ActionTypeDisableClusterScaling:
return ActionPriorityNormal
case ActionTypeDisableMaintenance:
return ActionPriorityNormal
case ActionTypeDisableMemberMaintenance:
return ActionPriorityNormal
case ActionTypeEnableClusterScaling:
return ActionPriorityNormal
case ActionTypeEnableMaintenance:
return ActionPriorityNormal
case ActionTypeEnableMemberMaintenance:
return ActionPriorityNormal
case ActionTypeEncryptionKeyAdd:
return ActionPriorityNormal
case ActionTypeEncryptionKeyPropagated:
return ActionPriorityNormal
case ActionTypeEncryptionKeyRefresh:
return ActionPriorityNormal
case ActionTypeEncryptionKeyRemove:
return ActionPriorityNormal
case ActionTypeEncryptionKeyStatusUpdate:
return ActionPriorityNormal
case ActionTypeEnforceResignLeadership:
return ActionPriorityNormal
case ActionTypeEnsureSecuredResignLeadership:
return ActionPriorityNormal
case ActionTypeIdle:
return ActionPriorityNormal
case ActionTypeJWTAdd:
return ActionPriorityNormal
case ActionTypeJWTClean:
return ActionPriorityNormal
case ActionTypeJWTPropagated:
return ActionPriorityNormal
case ActionTypeJWTRefresh:
return ActionPriorityNormal
case ActionTypeJWTSetActive:
return ActionPriorityNormal
case ActionTypeJWTStatusUpdate:
return ActionPriorityNormal
case ActionTypeKillMemberPod:
return ActionPriorityHigh
case ActionTypeLicenseSet:
return ActionPriorityNormal
case ActionTypeMarkToRemoveMember:
return ActionPriorityNormal
case ActionTypeMemberPhaseUpdate:
return ActionPriorityHigh
case ActionTypeMemberRIDUpdate:
return ActionPriorityHigh
case ActionTypeMemberStatusSync:
return ActionPriorityHigh
case ActionTypePVCResize:
return ActionPriorityNormal
case ActionTypePVCResized:
return ActionPriorityNormal
case ActionTypePlaceHolder:
return ActionPriorityNormal
case ActionTypeRebalancerCheck:
return ActionPriorityNormal
case ActionTypeRebalancerCheckV2:
return ActionPriorityNormal
case ActionTypeRebalancerClean:
return ActionPriorityNormal
case ActionTypeRebalancerCleanV2:
return ActionPriorityNormal
case ActionTypeRebalancerGenerate:
return ActionPriorityNormal
case ActionTypeRebalancerGenerateV2:
return ActionPriorityNormal
case ActionTypeRebuildOutSyncedShards:
return ActionPriorityHigh
case ActionTypeRecreateMember:
return ActionPriorityNormal
case ActionTypeRefreshTLSCA:
return ActionPriorityNormal
case ActionTypeRefreshTLSKeyfileCertificate:
return ActionPriorityNormal
case ActionTypeRemoveMember:
return ActionPriorityNormal
case ActionTypeRemoveMemberPVC:
return ActionPriorityNormal
case ActionTypeRenewTLSCACertificate:
return ActionPriorityNormal
case ActionTypeRenewTLSCertificate:
return ActionPriorityNormal
case ActionTypeResignLeadership:
return ActionPriorityNormal
case ActionTypeResourceSync:
return ActionPriorityNormal
case ActionTypeRotateMember:
return ActionPriorityNormal
case ActionTypeRotateStartMember:
return ActionPriorityNormal
case ActionTypeRotateStopMember:
return ActionPriorityNormal
case ActionTypeRuntimeContainerArgsLogLevelUpdate:
return ActionPriorityNormal
case ActionTypeRuntimeContainerImageUpdate:
return ActionPriorityNormal
case ActionTypeRuntimeContainerSyncTolerations:
return ActionPriorityNormal
case ActionTypeSetCondition:
return ActionPriorityHigh
case ActionTypeSetConditionV2:
return ActionPriorityHigh
case ActionTypeSetCurrentImage:
return ActionPriorityNormal
case ActionTypeSetCurrentMemberArch:
return ActionPriorityNormal
case ActionTypeSetMaintenanceCondition:
return ActionPriorityNormal
case ActionTypeSetMemberCondition:
return ActionPriorityHigh
case ActionTypeSetMemberConditionV2:
return ActionPriorityHigh
case ActionTypeSetMemberCurrentImage:
return ActionPriorityNormal
case ActionTypeShutdownMember:
return ActionPriorityNormal
case ActionTypeTLSKeyStatusUpdate:
return ActionPriorityNormal
case ActionTypeTLSPropagated:
return ActionPriorityNormal
case ActionTypeTimezoneSecretSet:
return ActionPriorityNormal
case ActionTypeTopologyDisable:
return ActionPriorityNormal
case ActionTypeTopologyEnable:
return ActionPriorityNormal
case ActionTypeTopologyMemberAssignment:
return ActionPriorityNormal
case ActionTypeTopologyZonesUpdate:
return ActionPriorityNormal
case ActionTypeUpToDateUpdate:
return ActionPriorityNormal
case ActionTypeUpdateTLSSNI:
return ActionPriorityNormal
case ActionTypeUpgradeMember:
return ActionPriorityNormal
case ActionTypeWaitForMemberInSync:
return ActionPriorityNormal
case ActionTypeWaitForMemberReady:
return ActionPriorityNormal
case ActionTypeWaitForMemberUp:
return ActionPriorityNormal
default:
return ActionPriorityUnknown
}
}
// Internal returns true if action is considered to be internal
func (a ActionType) Internal() bool {
switch a {
case ActionTypeRebalancerGenerate:
return true
case ActionTypeRebalancerGenerateV2:
return true
default:
return false
}
}
// Optional returns true if action execution wont abort Plan
func (a ActionType) Optional() bool {
switch a {
case ActionTypeAddMember:
return false
case ActionTypeAppendTLSCACertificate:
return false
case ActionTypeArangoMemberUpdatePodSpec:
return false
case ActionTypeArangoMemberUpdatePodStatus:
return false
case ActionTypeBackupRestore:
return false
case ActionTypeBackupRestoreClean:
return false
case ActionTypeBootstrapSetPassword:
return false
case ActionTypeBootstrapUpdate:
return false
case ActionTypeCleanMemberService:
return false
case ActionTypeCleanOutMember:
return false
case ActionTypeCleanTLSCACertificate:
return false
case ActionTypeCleanTLSKeyfileCertificate:
return false
case ActionTypeClusterMemberCleanup:
return false
case ActionTypeDisableClusterScaling:
return false
case ActionTypeDisableMaintenance:
return false
case ActionTypeDisableMemberMaintenance:
return false
case ActionTypeEnableClusterScaling:
return false
case ActionTypeEnableMaintenance:
return false
case ActionTypeEnableMemberMaintenance:
return false
case ActionTypeEncryptionKeyAdd:
return false
case ActionTypeEncryptionKeyPropagated:
return false
case ActionTypeEncryptionKeyRefresh:
return false
case ActionTypeEncryptionKeyRemove:
return false
case ActionTypeEncryptionKeyStatusUpdate:
return false
case ActionTypeEnforceResignLeadership:
return true
case ActionTypeEnsureSecuredResignLeadership:
return false
case ActionTypeIdle:
return false
case ActionTypeJWTAdd:
return false
case ActionTypeJWTClean:
return false
case ActionTypeJWTPropagated:
return false
case ActionTypeJWTRefresh:
return false
case ActionTypeJWTSetActive:
return false
case ActionTypeJWTStatusUpdate:
return false
case ActionTypeKillMemberPod:
return false
case ActionTypeLicenseSet: