![Rodolfo Pacheco](/assets/img/avatar_default.png)
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
24 lines
1007 B
Plaintext
24 lines
1007 B
Plaintext
|
|
Sets a context entry in arshipctl config.
|
|
Specifying a name that already exists will merge new fields on top of existing values for those fields.
|
|
|
|
Usage:
|
|
set-context NAME [flags]
|
|
|
|
Examples:
|
|
|
|
# Create a completely new e2e context entry
|
|
airshipctl config set-context e2e --namespace=kube-system --manifest=manifest --user=auth-info --cluster-type=target
|
|
|
|
# Update the current-context to e2e
|
|
airshipctl config set-context e2e --current-context=true
|
|
|
|
Flags:
|
|
--cluster string cluster for the context entry in airshipctl config
|
|
--cluster-type string cluster-type for the context entry in airshipctl config
|
|
--current-context current-context for the context entry in airshipctl config
|
|
-h, --help help for set-context
|
|
--manifest string manifest for the context entry in airshipctl config
|
|
--namespace string namespace for the context entry in airshipctl config
|
|
--user string user for the context entry in airshipctl config
|