handler

package
v0.0.0-...-f8c4c1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSManagedControlPlaneHandler

type AWSManagedControlPlaneHandler struct{}

AWSManagedControlPlaneHandler extracts the following Cluster Registry metadata from AWSManagedControlPlane (CAPA) objects: - extra.oidcIssuer (e.g. "oidc.eks.us-west-2.amazonaws.com/id/EXAMPLED539D4633E2D5B6B716D3041E")

func (*AWSManagedControlPlaneHandler) Handle

type AWSManagedMachinePoolHandler

type AWSManagedMachinePoolHandler struct{}

AWSManagedMachinePoolHandler extracts the following Cluster Registry metadata from AWSManagedMachinePoolHandler (CAPA) objects: tiers: - name (e.g. "worker0") - instanceType (e.g. "m5.large") - minCapacity (e.g. 1) - maxCapacity (e.g. 10) - labels (e.g. {"tier": "worker"}) - taints (e.g. ["node-role.kubernetes.io/worker:NoSchedule"])

func (*AWSManagedMachinePoolHandler) Handle

type ClusterHandler

type ClusterHandler struct{}

ClusterHandler extracts the following Cluster Registry metadata from Cluster (CAPI) objects: - shortName (e.g. "ethos000devva6") - region (e.g. "va6") - provider (e.g. "eks") - location (e.g. "us-west-2") - environment (e.g. "dev")

func (*ClusterHandler) Handle

type EKSConfigHandler

type EKSConfigHandler struct{}

EKSConfigHandler extracts the following Cluster Registry metadata from EKSConfig (CAPA) objects: - tiers[].containerRuntime (e.g. "containerd")

func (*EKSConfigHandler) Handle

type ObjectHandler

type ObjectHandler interface {
	Handle(ctx context.Context, objects []unstructured.Unstructured) (*v1.ClusterSpec, error)
}

type ParseError

type ParseError struct {
	Fields []string
	Object unstructured.Unstructured
	Err    error
}

func (*ParseError) Error

func (e *ParseError) Error() string

func (*ParseError) Wrap

func (e *ParseError) Wrap(err error) error

type SubnetHandler

type SubnetHandler struct{}

SubnetHandler extracts the following Cluster Registry metadata from Subnet (ACK) objects: availabilityZones: - name (e.g. "us-east-1c") - id (e.g. "use-az2")

func (*SubnetHandler) Handle

func (h *SubnetHandler) Handle(ctx context.Context, objects []unstructured.Unstructured) (*v1.ClusterSpec, error)

type VPCHandler

type VPCHandler struct{}

VPCHandler extracts the following Cluster Registry metadata from VPC (ACK) objects: virtualNetworks: - vpcID (e.g. "vpc-0a1b2c3d4e5f6g7h8") - cidrBlocks (e.g. ["10.123.0.0/12", "100.64.0.0/16]) - accountId (e.g. "123456789012")

func (*VPCHandler) Handle

func (h *VPCHandler) Handle(ctx context.Context, objects []unstructured.Unstructured) (*v1.ClusterSpec, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳