UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

21 lines 1.19 kB
// SPDX-License-Identifier: Apache-2.0 import { InjectTokens } from '../../src/core/dependency-injection/inject-tokens.js'; import { container } from 'tsyringe-neo'; import * as constants from '../../src/core/constants.js'; export class HelmMetricsServer { static REPOSITORY_NAME = constants.METRICS_SERVER_CHART; static REPOSITORY_URL = constants.METRICS_SERVER_CHART_URL; static VERSION = ''; // latest version static async installMetricsServer(testName) { try { const k8Factory = container.resolve(InjectTokens.K8Factory); const chartManager = container.resolve(InjectTokens.ChartManager); await chartManager.addRepo(this.REPOSITORY_NAME, this.REPOSITORY_URL, true); await chartManager.install(constants.METRICS_SERVER_NAMESPACE, constants.METRICS_SERVER_RELEASE_NAME, constants.METRICS_SERVER_CHART, this.REPOSITORY_NAME, this.VERSION, constants.METRICS_SERVER_INSTALL_ARGS, k8Factory.default().contexts().readCurrent()); } catch (error) { throw new Error(`${testName}: failed to install metrics-server: ${error.message}`); } } } //# sourceMappingURL=helm-metrics-server.js.map