Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add check command to verify deployed endpoints #503

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
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
Next Next commit
add check command to verify deployed endpoints
Anmol1696 committed Jun 25, 2024
commit bba772e5f69f57686e5a83b0c8152e6d7c9807c1
3 changes: 3 additions & 0 deletions clients/js/packages/cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -103,6 +103,9 @@ async function main() {
case 'undeploy':
client.deleteHelm();
break;
case 'check':
client.check();
break;
default:
console.log(`Unknown command: ${command}`);
displayUsage();
6 changes: 6 additions & 0 deletions clients/js/packages/client/src/client.ts
Original file line number Diff line number Diff line change
@@ -595,4 +595,10 @@ export class StarshipClient implements StarshipClientI {
console.log(pid);
});
}

public check(): void {
this.checkDependencies();
this.exec(['helm', 'version']);
this.exec(['kubectl', 'version', '--short']);
}
}