@hashgraph/solo
    Preparing search index...

    Defines the core functionalities of 'init' command

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    chartManager: ChartManager
    configManager: ConfigManager
    depManager: DependencyManager
    k8Factory: K8Factory
    leaseManager: LockManager
    localConfig: LocalConfig
    logger?: SoloLogger
    remoteConfigManager: RemoteConfigManager
    COMMAND_NAME: "init" = 'init'

    Methods

    • Return Yargs command definition for 'init' command

      Returns {
          builder: (y: any) => void;
          command: string;
          desc: string;
          handler: (argv: any) => Promise<void>;
      }

      A object representing the Yargs command definition

    • Executes the init CLI command

      Parameters

      • argv: any

      Returns Promise<boolean>

    • Returns a promise that invokes the shell command

      Parameters

      • cmd: string
      • verbose: boolean = false

      Returns Promise<string[]>

    • Prepare the values files map for each cluster

      Order of precedence:

      1. Chart's default values file (if chartDirectory is set)
      2. Profile values file
      3. User's values file

      Parameters

      • clusterReferences: ClusterReferences
      • OptionalchartDirectory: string

        the chart directory

      • OptionalprofileValuesFile: string

        the profile values file full path

      • OptionalvaluesFileInput: string

        the values file input string

      Returns Record<string, string>

    • Prepare the values files map for each cluster

      Order of precedence:

      1. Chart's default values file (if chartDirectory is set)
      2. Profile values file
      3. User's values file

      Parameters

      • clusterReferences: ClusterReferences
      • OptionalchartDirectory: string

        the chart directory

      • OptionalprofileValuesFile: Record<string, string>

        mapping of clusterRef to the profile values file full path

      • OptionalvaluesFileInput: string

        the values file input string

      Returns Record<string, string>