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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user