-
Notifications
You must be signed in to change notification settings - Fork 27
/
task.go
29 lines (24 loc) · 1.19 KB
/
task.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
package task
import (
"github.com/flant/shell-operator/pkg/task"
)
// Addon-operator specific task types
const (
// GlobalHookRun runs a global hook.
GlobalHookRun task.TaskType = "GlobalHookRun"
// ModuleHookRun runs schedule or kubernetes hook.
ModuleHookRun task.TaskType = "ModuleHookRun"
// ModuleDelete runs helm delete/afterHelmDelete sequence.
ModuleDelete task.TaskType = "ModuleDelete"
// ModuleRun runs beforeHelm/helm upgrade/afterHelm sequence.
ModuleRun task.TaskType = "ModuleRun"
// ModulePurge - delete unknown helm release (no module in ModulesDir)
ModulePurge task.TaskType = "ModulePurge"
// DiscoverHelmReleases lists helm releases to detect unknown modules and initiate enabled modules list.
DiscoverHelmReleases task.TaskType = "DiscoverHelmReleases"
// ConvergeModules runs beforeAll/run modules/afterAll sequence for all enabled modules.
ConvergeModules task.TaskType = "ConvergeModules"
GlobalHookEnableKubernetesBindings task.TaskType = "GlobalHookEnableKubernetesBindings"
GlobalHookWaitKubernetesSynchronization task.TaskType = "GlobalHookWaitKubernetesSynchronization"
GlobalHookEnableScheduleBindings task.TaskType = "GlobalHookEnableScheduleBindings"
)