@@ -14,14 +14,14 @@ import {type AnyYargs, type ArgvStruct} from '../types/aliases.js';
14
14
import { ListrLock } from '../core/lock/listr-lock.js' ;
15
15
import { ComponentType } from '../core/config/remote/enumerations.js' ;
16
16
import { MirrorNodeExplorerComponent } from '../core/config/remote/components/mirror-node-explorer-component.js' ;
17
- import { prepareChartPath , prepareValuesFiles , showVersionBanner } from '../core/helpers.js' ;
17
+ import { prepareValuesFiles , showVersionBanner } from '../core/helpers.js' ;
18
18
import { type Optional , type SoloListrTask } from '../types/index.js' ;
19
19
import { resolveNamespaceFromDeployment } from '../core/resolvers.js' ;
20
20
import { NamespaceName } from '../integration/kube/resources/namespace/namespace-name.js' ;
21
21
import { type ClusterChecks } from '../core/cluster-checks.js' ;
22
22
import { container , inject , injectable } from 'tsyringe-neo' ;
23
23
import { InjectTokens } from '../core/dependency-injection/inject-tokens.js' ;
24
- import { INGRESS_CONTROLLER_NAME } from '../core/constants.js' ;
24
+ import { HEDERA_EXPLORER_CHART_URL , INGRESS_CONTROLLER_NAME } from '../core/constants.js' ;
25
25
import { INGRESS_CONTROLLER_VERSION } from '../../version.js' ;
26
26
import { patchInject } from '../core/dependency-injection/container-helper.js' ;
27
27
import * as helpers from '../core/helpers.js' ;
@@ -76,6 +76,7 @@ export class ExplorerCommand extends BaseCommand {
76
76
private static readonly DEPLOY_FLAGS_LIST = {
77
77
required : [ ] ,
78
78
optional : [
79
+ flags . cacheDir ,
79
80
flags . chartDirectory ,
80
81
flags . clusterRef ,
81
82
flags . enableIngress ,
@@ -232,14 +233,7 @@ export class ExplorerCommand extends BaseCommand {
232
233
title : 'Install cert manager' ,
233
234
task : async ctx => {
234
235
const config = ctx . config ;
235
- const { chartDirectory, soloChartVersion} = config ;
236
-
237
- const chartPath = await prepareChartPath (
238
- self . helm ,
239
- chartDirectory ,
240
- constants . SOLO_TESTING_CHART_URL ,
241
- constants . SOLO_CERT_MANAGER_CHART ,
242
- ) ;
236
+ const { soloChartVersion} = config ;
243
237
244
238
const soloCertManagerValuesArg = await self . prepareCertManagerChartValuesArg ( config ) ;
245
239
// check if CRDs of cert-manager are already installed
@@ -259,7 +253,8 @@ export class ExplorerCommand extends BaseCommand {
259
253
await self . chartManager . install (
260
254
NamespaceName . of ( constants . CERT_MANAGER_NAME_SPACE ) ,
261
255
constants . SOLO_CERT_MANAGER_CHART ,
262
- chartPath ,
256
+ constants . SOLO_CERT_MANAGER_CHART ,
257
+ ctx . config . chartDirectory ? ctx . config . chartDirectory : constants . SOLO_TESTING_CHART_URL ,
263
258
soloChartVersion ,
264
259
' --set cert-manager.installCRDs=true' ,
265
260
ctx . config . clusterContext ,
@@ -287,7 +282,8 @@ export class ExplorerCommand extends BaseCommand {
287
282
await self . chartManager . upgrade (
288
283
NamespaceName . of ( constants . CERT_MANAGER_NAME_SPACE ) ,
289
284
constants . SOLO_CERT_MANAGER_CHART ,
290
- chartPath ,
285
+ constants . SOLO_CERT_MANAGER_CHART ,
286
+ ctx . config . chartDirectory ? ctx . config . chartDirectory : constants . SOLO_TESTING_CHART_URL ,
291
287
soloChartVersion ,
292
288
soloCertManagerValuesArg ,
293
289
ctx . config . clusterContext ,
@@ -308,7 +304,8 @@ export class ExplorerCommand extends BaseCommand {
308
304
await self . chartManager . install (
309
305
config . namespace ,
310
306
constants . HEDERA_EXPLORER_RELEASE_NAME ,
311
- constants . HEDERA_EXPLORER_CHART_URL ,
307
+ '' ,
308
+ HEDERA_EXPLORER_CHART_URL ,
312
309
config . hederaExplorerVersion ,
313
310
exploreValuesArg ,
314
311
ctx . config . clusterContext ,
@@ -328,17 +325,11 @@ export class ExplorerCommand extends BaseCommand {
328
325
}
329
326
explorerIngressControllerValuesArg += ` --set fullnameOverride=${ constants . EXPLORER_INGRESS_CONTROLLER } ` ;
330
327
331
- const ingressControllerChartPath = await prepareChartPath (
332
- self . helm ,
333
- '' , // don't use chartPath which is for local solo-charts only
334
- constants . INGRESS_CONTROLLER_RELEASE_NAME ,
335
- constants . INGRESS_CONTROLLER_RELEASE_NAME ,
336
- ) ;
337
-
338
328
await self . chartManager . install (
339
329
config . namespace ,
340
330
constants . INGRESS_CONTROLLER_RELEASE_NAME ,
341
- ingressControllerChartPath ,
331
+ constants . INGRESS_CONTROLLER_RELEASE_NAME ,
332
+ constants . INGRESS_CONTROLLER_RELEASE_NAME ,
342
333
INGRESS_CONTROLLER_VERSION ,
343
334
explorerIngressControllerValuesArg ,
344
335
ctx . config . clusterContext ,
0 commit comments