Skip to content

Commit 69770a9

Browse files
committed
Add namespace To Context
1 parent 3783b77 commit 69770a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config_types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export interface Context {
8484
readonly cluster: string;
8585
readonly user: string;
8686
readonly name: string;
87+
readonly namespace?: string;
8788
}
8889

8990
export function newContexts(a: any): Context[] {
@@ -105,6 +106,7 @@ function contextIterator(): u.ListIterator<any, Context> {
105106
cluster: elt.context.cluster,
106107
name: elt.name,
107108
user: (elt.context.user ? elt.context.user : undefined),
109+
namespace: elt.context.namespace || undefined,
108110
};
109111
};
110112
}

0 commit comments

Comments
 (0)