Store context type in metadata to make retrocompatibility with previous contexts easier (potentially switching back and forth)

This commit is contained in:
Guillaume Tardif 2020-06-10 14:07:35 +02:00
parent 8930563a25
commit e7682682fb
8 changed files with 147 additions and 48 deletions

View file

@ -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,
})
}