Uses Kubernetes ConfigMaps to manage the remote configuration data by creating, loading, modifying, and saving the configuration data to and from a Kubernetes cluster.

Constructors

Accessors

Methods

  • Retrieves the ConfigMap containing the remote configuration from the Kubernetes cluster.

    Parameters

    • Optionalnamespace: NamespaceName

      The namespace to search for the ConfigMap.

    • Optionalcontext: string

      The context to use for the Kubernetes client.

    Returns Promise<V1ConfigMap>

    the remote configuration data.

    if the ConfigMap could not be read and the error is not a 404 status, will throw a SoloError SoloError

  • Performs the loading of the remote configuration. Checks if the configuration is already loaded, otherwise loads and adds the command to history.

    Parameters

    • argv: { _: string[] } & AnyObject

      arguments containing command input for historical reference.

    • validate: boolean = true

      whether to validate the remote configuration.

    Returns Promise<void>

  • Modifies the loaded remote configuration data using a provided callback function. The callback operates on the configuration data, which is then saved to the cluster.

    Parameters

    • callback: (remoteConfig: RemoteConfigDataWrapper) => Promise<void>

      an async function that modifies the remote configuration data.

    Returns Promise<void>

    if the configuration is not loaded before modification, will throw a SoloError SoloError