diff --git a/fullstack-network-manager/src/commands/flags.mjs b/fullstack-network-manager/src/commands/flags.mjs index bcd6554c6..eded2b8bf 100644 --- a/fullstack-network-manager/src/commands/flags.mjs +++ b/fullstack-network-manager/src/commands/flags.mjs @@ -245,15 +245,6 @@ export const tlsClusterIssuerName = { // tlsClusterIssuerType } } -export const tlsClusterIssuerNamespace = { // delete - name: 'tls-cluster-issuer-namespace', - definition: { // TODO fix - describe: 'The namespace of the TLS cluster issuer to use for gateway services, defaults to "cert-manager"', - default: 'cert-manager', - type: 'string' - } -} - export const acmeClusterIssuer = { // delete name: 'acme-cluster-issuer', definition: { @@ -305,7 +296,6 @@ export const allFlags = [ operatorId, operatorKey, tlsClusterIssuerName, - tlsClusterIssuerNamespace, enableHederaExplorerTls, deletePvcs ] diff --git a/fullstack-network-manager/src/commands/network.mjs b/fullstack-network-manager/src/commands/network.mjs index a8aaf0fc4..905b1da3c 100644 --- a/fullstack-network-manager/src/commands/network.mjs +++ b/fullstack-network-manager/src/commands/network.mjs @@ -9,7 +9,7 @@ import { constants, Templates } from '../core/index.mjs' import * as prompts from './prompts.mjs' export class NetworkCommand extends BaseCommand { - getTlsValueArguments (tlsClusterIssuerName, tlsClusterIssuerNamespace, enableHederaExplorerTls) { + getTlsValueArguments (tlsClusterIssuerName, enableHederaExplorerTls) { // TODO rebuild // return valuesArg @@ -29,7 +29,7 @@ export class NetworkCommand extends BaseCommand { } prepareValuesArg (chartDir, valuesFile, deployMirrorNode, deployHederaExplorer, tlsClusterIssuerName, - tlsClusterIssuerNamespace, enableHederaExplorerTls, acmeClusterIssuer) { + enableHederaExplorerTls, acmeClusterIssuer) { let valuesArg = '' if (chartDir) { valuesArg = `-f ${chartDir}/fullstack-deployment/values.yaml` @@ -56,7 +56,6 @@ export class NetworkCommand extends BaseCommand { const deployMirrorNode = this.configManager.getFlag(flags.deployMirrorNode) const deployExplorer = this.configManager.getFlag(flags.deployHederaExplorer) const tlsClusterIssuerName = this.configManager.getFlag(flags.tlsClusterIssuerName) - const tlsClusterIssuerNamespace = this.configManager.getFlag(flags.tlsClusterIssuerNamespace) const enableHederaExplorerTls = this.configManager.getFlag(flags.enableHederaExplorerTls) const acmeClusterIssuer = this.configManager.getFlag(flags.acmeClusterIssuer) @@ -69,7 +68,6 @@ export class NetworkCommand extends BaseCommand { deployMirrorNode: await prompts.promptDeployMirrorNode(task, deployMirrorNode), deployHederaExplorer: await prompts.promptDeployHederaExplorer(task, deployExplorer), tlsClusterIssuerName: await prompts.promptTlsClusterIssuerName(task, tlsClusterIssuerName), - tlsClusterIssuerNamespace: await prompts.promptTlsClusterIssuerNamespace(task, tlsClusterIssuerNamespace), enableHederaExplorerTls: await prompts.promptEnableHederaExplorerTls(task, enableHederaExplorerTls), acmeClusterIssuer: await prompts.promptAcmeClusterIssuer(task, acmeClusterIssuer), version: this.configManager.getVersion() @@ -81,7 +79,7 @@ export class NetworkCommand extends BaseCommand { config.valuesArg = this.prepareValuesArg(config.chartDir, config.valuesFile, config.deployMirrorNode, config.deployHederaExplorer, - config.tlsClusterIssuerName, config.tlsClusterIssuerNamespace, config.enableHederaExplorerTls, + config.tlsClusterIssuerName, config.enableHederaExplorerTls, config.acmeClusterIssuer) return config @@ -294,7 +292,6 @@ export class NetworkCommand extends BaseCommand { flags.valuesFile, flags.chartDirectory, flags.tlsClusterIssuerName, - flags.tlsClusterIssuerNamespace, flags.enableHederaExplorerTls, flags.acmeClusterIssuer ) @@ -345,7 +342,6 @@ export class NetworkCommand extends BaseCommand { flags.valuesFile, flags.chartDirectory, flags.tlsClusterIssuerName, - flags.tlsClusterIssuerNamespace, flags.enableHederaExplorerTls, flags.acmeClusterIssuer ), diff --git a/fullstack-network-manager/src/commands/prompts.mjs b/fullstack-network-manager/src/commands/prompts.mjs index 438407bee..77e9ec596 100644 --- a/fullstack-network-manager/src/commands/prompts.mjs +++ b/fullstack-network-manager/src/commands/prompts.mjs @@ -367,22 +367,6 @@ export async function promptTlsClusterIssuerName (task, input) { } } -export async function promptTlsClusterIssuerNamespace (task, input) { - try { - if (!input) { - input = await task.prompt(ListrEnquirerPromptAdapter).run({ - type: 'text', - default: flags.tlsClusterIssuerNamespace.definition.default, - message: 'Enter TLS cluster issuer namespace:' - }) - } - - return input - } catch (e) { - throw new FullstackTestingError(`input failed: ${flags.tlsClusterIssuerNamespace.name}`, e) - } -} - export async function promptEnableHederaExplorerTls (task, input) { try { if (input === undefined) {