Merge pull request #1175 from aiordache/kube_context_create

Refactor kubernetes context create
This commit is contained in:
Guillaume Tardif 2021-01-26 17:09:03 +01:00 committed by GitHub
commit 0d778fbf48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 138 additions and 21 deletions

View file

@ -57,7 +57,8 @@ type EcsContext struct {
// KubeContext is the context for a kube backend
type KubeContext struct {
Endpoint string `json:",omitempty"`
ContextName string `json:",omitempty"`
KubeconfigPath string `json:",omitempty"`
FromEnvironment bool
}

View file

@ -57,7 +57,7 @@ const (
LocalContextType = "local"
// KubeContextType is the endpoint key in the context endpoints for a new
// kube backend
KubeContextType = "kubernetes"
KubeContextType = "kube"
)
const (