mirror of
https://github.com/docker/compose.git
synced 2026-08-04 06:38:45 +00:00
Store context type in metadata to make retrocompatibility with previous contexts easier (potentially switching back and forth)
This commit is contained in:
parent
8930563a25
commit
e7682682fb
8 changed files with 147 additions and 48 deletions
|
|
@ -36,7 +36,7 @@ func (cp *contextsProxy) List(ctx context.Context, request *contextsv1.ListReque
|
|||
for _, c := range contexts {
|
||||
result.Contexts = append(result.Contexts, &contextsv1.Context{
|
||||
Name: c.Name,
|
||||
ContextType: c.Type,
|
||||
ContextType: c.Type(),
|
||||
Current: c.Name == configFile.CurrentContext,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue