a480527808
Each of these include an option for --current-context that set or retrieves the curret context This patchset mainly creates the cmd/config and pkg/config require additions Also includes a fync getCurrentContext(<CLUSTERTYPE>) in the config pkg that other modules should rely on. Introduces new ErrMissingConfig and ErrConfigFailed types been used by set-context, will decimate through get/ and set/get cluster after this is reviewed. Change-Id: I501483a9db99f33f860eaf329a65bb0209b2aaff
28 lines
564 B
Plaintext
28 lines
564 B
Plaintext
Context: ContextBar
|
|
context-kubeconf: ContextBar_ephemeral
|
|
manifest: Manifest_ContextBar
|
|
|
|
LocationOfOrigin: ""
|
|
cluster: dummycluster_ephemeral
|
|
namespace: dummy_namespace
|
|
user: dummy_user
|
|
|
|
Context: ContextBaz
|
|
context-kubeconf: ContextBaz_ephemeral
|
|
manifest: Manifest_ContextBaz
|
|
|
|
LocationOfOrigin: ""
|
|
cluster: dummycluster_ephemeral
|
|
namespace: dummy_namespace
|
|
user: dummy_user
|
|
|
|
Context: ContextFoo
|
|
context-kubeconf: ContextFoo_ephemeral
|
|
manifest: Manifest_ContextFoo
|
|
|
|
LocationOfOrigin: ""
|
|
cluster: dummycluster_ephemeral
|
|
namespace: dummy_namespace
|
|
user: dummy_user
|
|
|