Optional
k8Factory: K8FactoryThe Kubernetes client used for interacting with ConfigMaps.
Optional
logger: SoloLoggerThe logger for recording activity and errors.
Optional
localConfig: LocalConfigLocal configuration for the remote config.
Optional
configManager: ConfigManagerManager to retrieve application flags and settings.
the remote configuration data's clusters cloned
the components data wrapper cloned
Empties the component data inside the remote config
Loads the remote configuration, performs a validation and returns it
RemoteConfigDataWrapper
Gets a list of distinct cluster references from the consensus nodes.
an object of cluster references.
Retrieves the ConfigMap containing the remote configuration from the Kubernetes cluster.
Optional
namespace: NamespaceNameThe namespace to search for the ConfigMap.
Optional
context: stringThe context to use for the Kubernetes client.
the remote configuration data.
if the ConfigMap could not be read and the error is not a 404 status, will throw a SoloError SoloError
Get the consensus nodes from the remoteConfigManager and use the localConfig to get the context
an array of ConsensusNode objects
Gets a list of distinct contexts from the consensus nodes.
an array of context strings.
Performs the loading of the remote configuration. Checks if the configuration is already loaded, otherwise loads and adds the command to history.
arguments containing command input for historical reference.
whether to validate the remote configuration.
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.
an async function that modifies the remote configuration data.
if the configuration is not loaded before modification, will throw a SoloError SoloError
Static
compare
Uses Kubernetes ConfigMaps to manage the remote configuration data by creating, loading, modifying, and saving the configuration data to and from a Kubernetes cluster.