Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions components/common/kube.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,24 +234,34 @@ exports.DeleteService = async function(name) {
}

exports.GetRoutes = async function() {
let list = await customApi.listNamespacedCustomObject(
'route.openshift.io',
'v1',
namespace,
'routes'
);
return list.body.items;
try {
let list = await customApi.listNamespacedCustomObject(
'route.openshift.io',
'v1',
namespace,
'routes'
);
return list.body.items;
} catch (error) {
// Routes are not available (not running on OpenShift)
return [];
}
}

exports.DeleteRoute = async function(name) {
Log(`Kube - Deleting route ${name}`);
await customApi.deleteNamespacedCustomObject(
'route.openshift.io',
'v1',
namespace,
'routes',
name
);
try {
Log(`Kube - Deleting route ${name}`);
await customApi.deleteNamespacedCustomObject(
'route.openshift.io',
'v1',
namespace,
'routes',
name
);
} catch (error) {
// Routes are not available (not running on OpenShift)
Log(`Route deletion skipped - OpenShift routes not available: ${name}`);
}
}

exports.LoadDeployment = async function(name) {
Expand Down
5 changes: 0 additions & 5 deletions components/console/.eslintignore

This file was deleted.

175 changes: 0 additions & 175 deletions components/console/.eslintrc.json

This file was deleted.

32 changes: 0 additions & 32 deletions components/console/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

11 changes: 0 additions & 11 deletions components/console/.github/workflows/commitlint.yml

This file was deleted.

39 changes: 0 additions & 39 deletions components/console/.github/workflows/skupper-console.yml

This file was deleted.

4 changes: 0 additions & 4 deletions components/console/.husky/commit-msg

This file was deleted.

Loading