Created
July 11, 2018 13:40
-
-
Save rhencke/74796986dd9723633ce5427b998c9f47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
sdk "github.com/gaia-pipeline/gosdk" | |
) | |
var jobs = sdk.Jobs{ | |
"CreateUser": sdk.Job{ | |
Handler: CreateUser, | |
Title: "Create DB User", | |
Description: "Creates a database user with least privileged permissions.", | |
}, | |
"MigrateDB": sdk.Job{ | |
Handler: MigrateDB, | |
Title: "DB Migration", | |
Description: "Imports newest test data dump and migrates to newest version.", | |
DependsOn: {"CreateUser"}, | |
}, | |
"CreateNamespace": sdk.Job{ | |
Handler: CreateNamespace, | |
Title: "Create K8S Namespace", | |
Description: "Creates a new Kubernetes namespace for the new test environment.", | |
DependsOn: {"MigrateDB"}, | |
}, | |
"CreateDeployment": sdk.Job{ | |
Handler: CreateDeployment, | |
Title: "Create K8S Deployment", | |
Description: "Creates a new Kubernetes deployment for the new test environment.", | |
DependsOn: {"CreateNamespace"}, | |
}, | |
"CreateService": sdk.Job{ | |
Handler: CreateService, | |
Title: "Create K8S Service", | |
Description: "Creates a new Kubernetes service for the new test environment.", | |
DependsOn: {"CreateNamespace"}, | |
}, | |
"CreateIngress": sdk.Job{ | |
Handler: CreateIngress, | |
Title: "Create K8S Ingress", | |
Description: "Creates a new Kubernetes ingress for the new test environment.", | |
DependsOn: {"CreateNamespace"}, | |
}, | |
"Cleanup": sdk.Job{ | |
Handler: Cleanup, | |
Title: "Clean up", | |
Description: "Removes all temporary files.", | |
DependsOn: {"CreateDeployment", "CreateService", "CreateIngress"}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment