UNPKG

@hashgraph/solo

Version:

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

61 lines 1.45 kB
// SPDX-License-Identifier: Apache-2.0 /** * Options for the `kind export kubeconfig` command. */ export class ExportKubeConfigOptions { /** * The name of the cluster context name (default "kind") */ _name; /** * Use internal or external address */ _internal; /** * kubeconfig path, defaults to $KUBECONFIG or $HOME/.kube/config */ _kubeconfig; constructor(name, internal = false, kubeconfig) { if (name) { this._name = name; } if (kubeconfig) { this._kubeconfig = kubeconfig; } this._internal = internal; } /** * Apply the options to the KindExecutionBuilder. * @param builder The KindExecutionBuilder to apply options to. */ apply(builder) { if (this._name) { builder.argument('name', this._name); } if (this._internal) { builder.flag('internal'); } if (this._kubeconfig) { builder.argument('kubeconfig', this._kubeconfig); } } /** * The name of the cluster. */ get name() { return this._name; } /** * Whether to use internal or external address. */ get internal() { return this._internal; } /** * The kubeconfig path. */ get kubeconfig() { return this._kubeconfig; } } //# sourceMappingURL=export-kubeconfig-options.js.map