feat: implement the scheduler plugin

This also performs a one-time migration of the DOKKU_SCHEDULER values the scheduler plugin properties.

Closes #4739
This commit is contained in:
Jose Diaz-Gonzalez
2021-10-09 17:44:35 -04:00
parent 8984b748c5
commit 3c6396fbca
23 changed files with 510 additions and 24 deletions

View File

@@ -32,6 +32,12 @@ func main() {
if !common.IsDeployed(appName) {
err = fmt.Errorf("App %v not deployed", appName)
}
case "scheduler-detect":
appName := flag.Arg(1)
if *global {
appName = "--global"
}
fmt.Print(common.GetAppScheduler(appName))
default:
err = fmt.Errorf("Invalid common command call: %v", cmd)
}