UNPKG

@hashgraph/solo

Version:

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

65 lines 1.81 kB
// SPDX-License-Identifier: Apache-2.0 import { UpgradeChartOptions } from './upgrade-chart-options.js'; /** * Builder for {@link UpgradeChartOptions}. */ export class UpgradeChartOptionsBuilder { _namespace; _kubeContext; _reuseValues = false; _extraArgs; _version; constructor() { } static builder() { return new UpgradeChartOptionsBuilder(); } /** * Sets the namespace where the release should be upgraded. * @param namespace The namespace. * @returns This builder instance. */ namespace(namespace) { this._namespace = namespace; return this; } /** * Sets the Kubernetes context to use. * @param context The Kubernetes context. * @returns This builder instance. */ kubeContext(context) { this._kubeContext = context; return this; } /** * Sets whether to reuse the last release's values. * @param reuse Whether to reuse values. * @returns This builder instance. */ reuseValues(reuse) { this._reuseValues = reuse; return this; } /** * Sets additional arguments to pass to the helm command. * @param arguments_ The additional arguments. * @returns This builder instance. */ extraArgs(arguments_) { this._extraArgs = arguments_; return this; } /** * Sets the version of the chart to upgrade to. * @param version The version. * @returns This builder instance. */ version(version) { this._version = version; return this; } build() { return new UpgradeChartOptions(this._namespace, this._kubeContext, this._reuseValues, this._extraArgs, this._version); } } //# sourceMappingURL=upgrade-chart-options-builder.js.map