mirror of
https://github.com/docker/compose.git
synced 2026-08-28 04:18:05 +00:00
Merge pull request #1175 from aiordache/kube_context_create
Refactor kubernetes context create
This commit is contained in:
commit
0d778fbf48
6 changed files with 138 additions and 21 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue