You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-23 21:44:44 +02:00
Adding initial version of Kubernetes backend (#552)
Co-authored-by: laszlocph <laszlo@laszlo.cloud> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Rynoxx <rynoxx@grid-servers.net>
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/woodpecker-ci/woodpecker/pipeline/backend/docker"
|
||||
"github.com/woodpecker-ci/woodpecker/pipeline/backend/kubernetes"
|
||||
"github.com/woodpecker-ci/woodpecker/pipeline/backend/local"
|
||||
"github.com/woodpecker-ci/woodpecker/pipeline/backend/ssh"
|
||||
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
|
||||
@@ -11,12 +13,12 @@ import (
|
||||
|
||||
var engines map[string]types.Engine
|
||||
|
||||
func init() {
|
||||
func Init(ctx context.Context) {
|
||||
loadedEngines := []types.Engine{
|
||||
docker.New(),
|
||||
local.New(),
|
||||
ssh.New(),
|
||||
// kubernetes.New(), // TODO: disabled for now as kubernetes backend has not been implemented yet
|
||||
kubernetes.New(ctx),
|
||||
}
|
||||
|
||||
engines = make(map[string]types.Engine)
|
||||
|
||||
Reference in New Issue
Block a user