Fast Context Switch: commands
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
This commit is contained in:
31
cli/command/context/testdata/inspect.golden
vendored
Normal file
31
cli/command/context/testdata/inspect.golden
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"Name": "current",
|
||||
"Metadata": {
|
||||
"Description": "description of current",
|
||||
"StackOrchestrator": "all"
|
||||
},
|
||||
"Endpoints": {
|
||||
"docker": {
|
||||
"Host": "https://someswarmserver",
|
||||
"SkipTLSVerify": false
|
||||
},
|
||||
"kubernetes": {
|
||||
"Host": "https://someserver",
|
||||
"SkipTLSVerify": false,
|
||||
"DefaultNamespace": "default"
|
||||
}
|
||||
},
|
||||
"TLSMaterial": {
|
||||
"kubernetes": [
|
||||
"ca.pem",
|
||||
"cert.pem",
|
||||
"key.pem"
|
||||
]
|
||||
},
|
||||
"Storage": {
|
||||
"MetadataPath": "<METADATA_PATH>",
|
||||
"TLSPath": "<TLS_PATH>"
|
||||
}
|
||||
}
|
||||
]
|
||||
5
cli/command/context/testdata/list.golden
vendored
Normal file
5
cli/command/context/testdata/list.golden
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
|
||||
current * description of current https://someswarmserver https://someserver (default) all
|
||||
default Current DOCKER_HOST based configuration
|
||||
other description of other https://someswarmserver https://someserver (default) all
|
||||
unset description of unset https://someswarmserver https://someserver (default)
|
||||
2
cli/command/context/testdata/list.no-context.golden
vendored
Normal file
2
cli/command/context/testdata/list.no-context.golden
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
NAME DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
|
||||
default * Current DOCKER_HOST based configuration https://someswarmserver https://someserver (default) swarm
|
||||
2
cli/command/context/testdata/quiet-list.golden
vendored
Normal file
2
cli/command/context/testdata/quiet-list.golden
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
current
|
||||
other
|
||||
19
cli/command/context/testdata/test-kubeconfig
vendored
Normal file
19
cli/command/context/testdata/test-kubeconfig
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
clusters:
|
||||
- cluster:
|
||||
certificate-authority-data: dGhlLWNh
|
||||
server: https://someserver
|
||||
name: test-cluster
|
||||
contexts:
|
||||
- context:
|
||||
cluster: test-cluster
|
||||
user: test-user
|
||||
name: test
|
||||
current-context: test
|
||||
kind: Config
|
||||
preferences: {}
|
||||
users:
|
||||
- name: test-user
|
||||
user:
|
||||
client-certificate-data: dGhlLWNlcnQ=
|
||||
client-key-data: dGhlLWtleQ==
|
||||
Reference in New Issue
Block a user