Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/sync/startup"

Index

Functions

sdmRepoSync

  • sdmRepoSync(sdm: SoftwareDeliveryMachine): Promise<void>
  • Create the trappings required for executing a command and then create a job to execute the kubernetesSync command.

    Parameters

    • sdm: SoftwareDeliveryMachine

    Returns Promise<void>

Const syncRepoStartupListener

  • syncRepoStartupListener(ctx: AdminCommunicationContext): Promise<void>
  • If the SDM is registered with one or more workspaces and not running in local mode, query cortex for the sync repo and replace the sdm.k8s.options.sync.repo property with a RemoteRepoRef for that repo. If this is the cluster master, it will create a job to perform a sync. If this is the cluster master and the SDM configuration has a KubernetesSyncOptions with a positive value of intervalMinutes, it will set up an interval timer to apply the specs from the sync repo periodically.

    Parameters

    • ctx: AdminCommunicationContext

    Returns Promise<void>

Generated using TypeDoc