File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ const yamlString = k8s.dumpYaml({
12
12
}
13
13
} ) ;
14
14
15
- const yamlNamespace = k8s . loadYaml ( k8s . dumpYaml ( yamlString ) ) ;
15
+ const yamlNamespace = k8s . loadYaml ( yamlString ) ;
16
16
17
17
k8sApi . createNamespace ( yamlNamespace ) . then (
18
18
( response ) => {
19
19
console . log ( 'Created namespace' ) ;
20
20
console . log ( response ) ;
21
- k8sApi . readNamespace ( namespace . metadata . name ) . then (
21
+ k8sApi . readNamespace ( yamlNamespace . metadata . name ) . then (
22
22
( response ) => {
23
23
console . log ( response ) ;
24
- k8sApi . deleteNamespace (
25
- namespace . metadata . name , { } /* delete options */ ) ;
24
+ k8sApi . deleteNamespace (
25
+ yamlNamespace . metadata . name , { } /* delete options */ ) ;
26
26
} ) ;
27
27
} ,
28
28
( err ) => {
29
29
console . log ( 'Error!: ' + err ) ;
30
30
}
31
- ) ;
31
+ ) ;
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ export * from './attach';
4
4
export * from './watch' ;
5
5
export * from './exec' ;
6
6
export * from './portforward' ;
7
+ export * from './yaml' ;
You can’t perform that action at this time.
0 commit comments