Cluster info supplies required information on the cluster configuration, registered resources and add-ons which could be leveraged by the framework, add-on implementations and teams.

Constructors

  • Constructor for ClusterInfo

    Parameters

    • cluster: ICluster
    • version: KubernetesVersion
    • OptionalnodeGroups: Nodegroup[]
    • OptionalautoscalingGroups: AutoScalingGroup[]
    • OptionalfargateProfiles: FargateProfile[]

    Returns ClusterInfo

Properties

autoscalingGroups?: AutoScalingGroup[]
cluster: ICluster
fargateProfiles?: FargateProfile[]
nodeGroups?: Nodegroup[]
version: KubernetesVersion

Methods

  • Update addonContext map

    Parameters

    Returns void

  • Update provisionedAddOns map

    Parameters

    • addOn: string
    • construct: Construct

    Returns void

  • Set the preProvisionedAddOn map with the promise for the construct of the addon being provisioned

    Parameters

    • addOn: string
    • promise: Promise<Construct>
    • ordered: boolean

      if addon depends on previous addons for completion (runs serially)

    Returns void

  • Returns all provisioned addons

    Returns Map<string, Construct>

    scheduledAddOns: Map<string, cdk.Construct>

  • Returns all scheduled addons

    Returns Map<string, Promise<Construct>>

    scheduledAddOns: Map<string, Promise<cdk.Construct>>

  • Given the addOn name, return the provisioned addOn construct

    Parameters

    • addOn: string

    Returns undefined | Construct

    undefined

  • Same as getResource but will fail if the specified resource is not found

    Type Parameters

    • T extends IResource

    Parameters

    • name: string

      of the resource to be returned

    Returns T

    Resource object (fails if not found)

  • Provides the resource registered under supplied name

    Type Parameters

    • T extends IResource

    Parameters

    • name: string

      of the resource to be returned

    Returns undefined | T

    Resource object or undefined if no resource was found

  • Returns the promise for the Addon construct

    Parameters

    • addOn: string

    Returns undefined | Promise<Construct>

    Promise<cdk.Construct>

  • Indicates if strict ordering is applied to the addon

    Parameters

    • addOn: string

      addOn key

    Returns boolean