Skip to content

Commit

Permalink
fix context not found error
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Jan 29, 2025
1 parent 69f95cd commit 9664797
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function main(argv: any) {
// so that we don't need to prompt the user
const contextNamespace = k8.getCurrentContextNamespace();
const currentClusterName = k8.getCurrentClusterName();
const contextName = k8.getCurrentContext();

const opts: Opts = {
logger,
Expand Down Expand Up @@ -124,7 +125,7 @@ export function main(argv: any) {
chalk.cyan('\n******************************* Solo *********************************************'),
);
logger.showUser(chalk.cyan('Version\t\t\t:'), chalk.yellow(configManager.getVersion()));
logger.showUser(chalk.cyan('Kubernetes Context\t:'), chalk.yellow(context.name));
logger.showUser(chalk.cyan('Kubernetes Context\t:'), chalk.yellow(contextName));
logger.showUser(chalk.cyan('Kubernetes Cluster\t:'), chalk.yellow(clusterName));
logger.showUser(chalk.cyan('Current Command\t\t:'), chalk.yellow(commandData));
if (configManager.getFlag(flags.namespace) !== undefined) {
Expand Down

0 comments on commit 9664797

Please sign in to comment.