Skip to content

Instantly share code, notes, and snippets.

@rhencke
Created July 11, 2018 13:40
Show Gist options
  • Save rhencke/74796986dd9723633ce5427b998c9f47 to your computer and use it in GitHub Desktop.
Save rhencke/74796986dd9723633ce5427b998c9f47 to your computer and use it in GitHub Desktop.
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