1
0
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:
Anbraten
2022-09-05 06:01:14 +02:00
committed by GitHub
parent 7778f7dc64
commit 3b0263442a
18 changed files with 1084 additions and 206 deletions

View File

@@ -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)