File tree 3 files changed +17
-11
lines changed
3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 1
1
kubero :
2
2
context : kind-kubero
3
3
namespace : kubero
4
- port : 3000
4
+ port : 2000
5
5
buildpacks :
6
6
- name : NodeJS
7
7
language : JavaScript
@@ -85,7 +85,7 @@ buildpacks:
85
85
repository : webdevops/nginx
86
86
tag : alpine
87
87
command : " supervisord"
88
- podSizeList :
88
+ podSizeList :
89
89
- name : small
90
90
description : ' Small (CPU: 0.25, Memory: 0.5Gi)'
91
91
default : true
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ debug('app:server')
12
12
13
13
const app : Express = express ( ) ;
14
14
const server = http . createServer ( app )
15
- const port : String = process . env . PORT || "3000 " ;
15
+ const port : String = process . env . PORT || "2000 " ;
16
16
17
17
// API
18
18
before ( app ) ;
Original file line number Diff line number Diff line change @@ -290,15 +290,21 @@ export class Kubectl {
290
290
291
291
public async getOperators ( ) {
292
292
// TODO list operators from all clusters
293
- let response = await this . customObjectsApi . listNamespacedCustomObject (
294
- 'operators.coreos.com' ,
295
- 'v1alpha1' ,
296
- 'operators' ,
297
- 'clusterserviceversions'
298
- )
293
+ let operators = { items : [ ] } ;
294
+ try {
295
+ let response = await this . customObjectsApi . listNamespacedCustomObject (
296
+ 'operators.coreos.com' ,
297
+ 'v1alpha1' ,
298
+ 'operators' ,
299
+ 'clusterserviceversions'
300
+ )
301
+ //let operators = response.body as KubernetesListObject<KubernetesObject>;
302
+ operators = response . body as any // TODO : fix type. This is a hacky way to get the type to work
303
+ } catch ( error ) {
304
+ debug . log ( error ) ;
305
+ debug . log ( "error getting operators" ) ;
306
+ }
299
307
300
- //let operators = response.body as KubernetesListObject<KubernetesObject>;
301
- let operators = response . body as any // TODO : fix type. This is a hacky way to get the type to work
302
308
return operators . items ;
303
309
}
304
310
You can’t perform that action at this time.
0 commit comments