-
Notifications
You must be signed in to change notification settings - Fork 21
/
jobs.go
49 lines (47 loc) · 1.45 KB
/
jobs.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
package main
import (
sdk "github.com/gaia-pipeline/gosdk"
)
var jobs = sdk.Jobs{
sdk.Job{
Handler: CreateUser,
Title: "Create DB User",
Description: "Creates a database user with least privileged permissions.",
},
sdk.Job{
Handler: MigrateDB,
Title: "DB Migration",
Description: "Imports newest test data dump and migrates to newest version.",
DependsOn: []string{"Create DB User"},
},
sdk.Job{
Handler: CreateNamespace,
Title: "Create K8S Namespace",
Description: "Creates a new Kubernetes namespace for the new test environment.",
DependsOn: []string{"DB Migration"},
},
sdk.Job{
Handler: CreateDeployment,
Title: "Create K8S Deployment",
Description: "Creates a new Kubernetes deployment for the new test environment.",
DependsOn: []string{"Create K8S Namespace"},
},
sdk.Job{
Handler: CreateService,
Title: "Create K8S Service",
Description: "Creates a new Kubernetes service for the new test environment.",
DependsOn: []string{"Create K8S Namespace"},
},
sdk.Job{
Handler: CreateIngress,
Title: "Create K8S Ingress",
Description: "Creates a new Kubernetes ingress for the new test environment.",
DependsOn: []string{"Create K8S Namespace"},
},
sdk.Job{
Handler: Cleanup,
Title: "Clean up",
Description: "Removes all temporary files.",
DependsOn: []string{"Create K8S Deployment", "Create K8S Service", "Create K8S Ingress"},
},
}