Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/kubeInstall"

Index

Functions

applySpec

  • applySpec(client: K8sObjectApi, spec: K8sObject): Promise<void>
  • Create or update Kubernetes resource.

    Parameters

    • client: K8sObjectApi
    • spec: K8sObject

    Returns Promise<void>

encodeSecret

  • encodeSecret(name: string, ns: string, secrets: object): KubeSecret
  • Create encoded secret object from key-value pairs.

    Parameters

    • name: string
    • ns: string
    • secrets: object

      key-value pairs of secrets, the values are base64 encoded

      • [key: string]: string

    Returns KubeSecret

    Kubernetes secret object

errMsg

  • errMsg(e: any): string

fetchSpecs

  • fetchSpecs(ns?: string): Promise<K8sObject[]>
  • Fetch the appropriate Kubernetes specs from GitHub and parse them.

    Parameters

    • Optional ns: string

      Namespace resources are to be deployed to, if not cluster-wide

    Returns Promise<K8sObject[]>

    Resource specs that need to be upserted

ghBaseRawUrl

  • ghBaseRawUrl(repo: string): string
  • Return base raw content GitHub.com URL for atomist repos.

    Parameters

    • repo: string

    Returns string

k8sSdmConfig

kubeInstall

kubeWebhookUrls

  • kubeWebhookUrls(workspaceIds: string[]): string
  • Convert workspace IDs to Atomist Kubernetes webhook URLs.

    Parameters

    • workspaceIds: string[]

      array of Atomist workspace/team IDs

    Returns string

    comma-delimited list of webhook URLs

processSpecs

  • processSpecs(raw: string, ns?: string): K8sObject[]

requestPromise

  • requestPromise(uri: string): Promise<object>

specSlug

  • specSlug(spec: K8sObject): string
  • Return informative string for spec.

    Parameters

    • spec: K8sObject

    Returns string

Generated using TypeDoc