Skip to content

Commit

Permalink
Merge pull request #73 from kubero-dev/release/v1.5.3
Browse files Browse the repository at this point in the history
Release/v1.5.3
  • Loading branch information
mms-gianni committed Jan 5, 2023
2 parents b216c07 + 5ae9541 commit 6b9e74f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kubero:
context: kind-kubero
namespace: kubero
port: 3000
port: 2000
buildpacks:
- name: NodeJS
language: JavaScript
Expand Down Expand Up @@ -85,7 +85,7 @@ buildpacks:
repository: webdevops/nginx
tag: alpine
command: "supervisord"
podSizeList:
podSizeList:
- name: small
description: 'Small (CPU: 0.25, Memory: 0.5Gi)'
default: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kubero",
"version": "1.5.0",
"version": "1.5.3",
"description": "Heroku clone on Kubernetes",
"main": "dist/index.js",
"author": "Gianni Carafa",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ debug('app:server')

const app: Express = express();
const server = http.createServer(app)
const port: String = process.env.PORT || "3000";
const port: String = process.env.PORT || "2000";

// API
before(app);
Expand Down
22 changes: 14 additions & 8 deletions src/modules/kubectl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,21 @@ export class Kubectl {

public async getOperators() {
// TODO list operators from all clusters
let response = await this.customObjectsApi.listNamespacedCustomObject(
'operators.coreos.com',
'v1alpha1',
'operators',
'clusterserviceversions'
)
let operators = { items: [] };
try {
let response = await this.customObjectsApi.listNamespacedCustomObject(
'operators.coreos.com',
'v1alpha1',
'operators',
'clusterserviceversions'
)
//let operators = response.body as KubernetesListObject<KubernetesObject>;
operators = response.body as any // TODO : fix type. This is a hacky way to get the type to work
} catch (error) {
debug.log(error);
debug.log("error getting operators");
}

//let operators = response.body as KubernetesListObject<KubernetesObject>;
let operators = response.body as any // TODO : fix type. This is a hacky way to get the type to work
return operators.items;
}

Expand Down

0 comments on commit 6b9e74f

Please sign in to comment.