The CLI does not currently expose options to add custom metadata to contexts, but contexts support them. - update test-utilities to allow setting custom metadata - update the inspect test to verify that custom metadata is included when inspecting a context. - update the import/export tests to verify that custom metadata is preserved. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
21 lines
500 B
Plaintext
21 lines
500 B
Plaintext
[
|
|
{
|
|
"Name": "current",
|
|
"Metadata": {
|
|
"Description": "description of current",
|
|
"MyCustomMetadata": "MyCustomMetadataValue"
|
|
},
|
|
"Endpoints": {
|
|
"docker": {
|
|
"Host": "https://someswarmserver.example.com",
|
|
"SkipTLSVerify": false
|
|
}
|
|
},
|
|
"TLSMaterial": {},
|
|
"Storage": {
|
|
"MetadataPath": "<METADATA_PATH>",
|
|
"TLSPath": "<TLS_PATH>"
|
|
}
|
|
}
|
|
]
|