Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Tang <[email protected]>
  • Loading branch information
JeffreyDallas committed Jan 22, 2025
1 parent 6972ce9 commit 087f580
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/commands/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ export class ExplorerCommand extends BaseCommand {
valuesArg += this.prepareValuesFiles(config.valuesFile);
}

if (config.enableIngress) {
valuesArg += ' --set ingress.enabled=true';
valuesArg += ` --set ingress.className=${config.namespace}-hedera-explorer-ingress-class`;
valuesArg += ` --set ingressClassName=${config.namespace}-hedera-explorer-ingress-class`;
}

valuesArg += ` --set proxyPass./api="http://${constants.MIRROR_NODE_RELEASE_NAME}-rest" `;
return valuesArg;
}
Expand Down Expand Up @@ -133,6 +139,7 @@ export class ExplorerCommand extends BaseCommand {
config.enableIngress
) {
valuesArg += ' --set ingress.enabled=true';
valuesArg += ` --set ingress.className=${namespace}-hedera-explorer-ingress-class`;
valuesArg += ' --set haproxyIngressController.enabled=true';
valuesArg += ` --set ingressClassName=${namespace}-hedera-explorer-ingress-class`;
valuesArg += ` --set-json 'ingress.hosts[0]={"host":"${hederaExplorerTlsHostName}","paths":[{"path":"/","pathType":"Prefix"}]}'`;
Expand Down Expand Up @@ -251,7 +258,7 @@ export class ExplorerCommand extends BaseCommand {
soloChartSetupValuesArg,
);
},
skip: ctx => !ctx.config.enableHederaExplorerTls,
skip: ctx => !ctx.config.enableHederaExplorerTls && !ctx.config.enableIngress,
},

{
Expand Down

0 comments on commit 087f580

Please sign in to comment.