1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-07 20:23:03 +03:00

Unregister stateless agents from server on termination (#2606)

Closes #2027

---------

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Thomas Anderson
2023-11-02 02:53:47 +03:00
committed by GitHub
parent ec62a1d0c6
commit 3620c84da4
14 changed files with 157 additions and 61 deletions

View File

@@ -41,6 +41,10 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)
const (
EngineName = "kubernetes"
)
var noContext = context.Background()
type kube struct {
@@ -98,7 +102,7 @@ func New(ctx context.Context) types.Engine {
}
func (e *kube) Name() string {
return "kubernetes"
return EngineName
}
func (e *kube) IsAvailable(context.Context) bool {