Skip to content

Commit

Permalink
add check command to verify deployed endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Jun 25, 2024
1 parent 05f69b7 commit bba772e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/js/packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ async function main() {
case 'undeploy':
client.deleteHelm();
break;
case 'check':
client.check();
break;
default:
console.log(`Unknown command: ${command}`);
displayUsage();
Expand Down
6 changes: 6 additions & 0 deletions clients/js/packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

0 comments on commit bba772e

Please sign in to comment.