controller

package
v14.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 94 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Cluster

type Cluster struct {
	*controller.Controller
}

func NewCluster

func NewCluster(config ClusterConfig) (*Cluster, error)

type ClusterConfig

type ClusterConfig struct {
	CloudTags cloudtags.Interface
	Event     event.Interface
	K8sClient k8sclient.Interface
	HAMaster  hamaster.Interface
	Locker    locker.Interface
	Logger    micrologger.Logger

	AccessLogsExpiration       int
	AdvancedMonitoringEC2      bool
	APIWhitelist               tccp.ConfigAPIWhitelist
	CalicoCIDR                 int
	CalicoSubnet               string
	DeleteLoggingBucket        bool
	GuestPrivateSubnetMaskBits int
	GuestPublicSubnetMaskBits  int
	GuestSubnetMaskBits        int
	HostAWSConfig              aws.Config
	IncludeTags                bool
	InstallationName           string
	IPAMNetworkRange           net.IPNet
	RegistryDomain             string
	RouteTables                string
	Route53Enabled             bool
}

type ControlPlane

type ControlPlane struct {
	*controller.Controller
}

func NewControlPlane

func NewControlPlane(config ControlPlaneConfig) (*ControlPlane, error)

type ControlPlaneConfig

type ControlPlaneConfig struct {
	CertsSearcher      certs.Interface
	CloudTags          cloudtags.Interface
	Event              event.Interface
	HAMaster           hamaster.Interface
	Images             images.Interface
	K8sClient          k8sclient.Interface
	Logger             micrologger.Logger
	RandomKeysSearcher randomkeys.Interface

	CalicoCIDR              int
	CalicoMTU               int
	CalicoSubnet            string
	ClusterDomain           string
	ClusterIPRange          string
	DockerDaemonCIDR        string
	DockerhubToken          string
	ExternalSNAT            bool
	HostAWSConfig           aws.Config
	IgnitionPath            string
	InstallationName        string
	NetworkSetupDockerImage string
	PodInfraContainerImage  string
	RegistryDomain          string
	RegistryMirrors         []string
	Route53Enabled          bool
	SSHUserList             string
	SSOPublicKey            string
}

type ControlPlaneDrainer

type ControlPlaneDrainer struct {
	*controller.Controller
}

func NewControlPlaneDrainer

func NewControlPlaneDrainer(config ControlPlaneDrainerConfig) (*ControlPlaneDrainer, error)

type ControlPlaneDrainerConfig

type ControlPlaneDrainerConfig struct {
	Event     event.Interface
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	HostAWSConfig aws.Config
}

type MachineDeployment

type MachineDeployment struct {
	*controller.Controller
}

func NewMachineDeployment

func NewMachineDeployment(config MachineDeploymentConfig) (*MachineDeployment, error)

type MachineDeploymentConfig

type MachineDeploymentConfig struct {
	CertsSearcher      certs.Interface
	CloudTags          cloudtags.Interface
	Event              event.Interface
	HAMaster           hamaster.Interface
	Images             images.Interface
	K8sClient          k8sclient.Interface
	Locker             locker.Interface
	Logger             micrologger.Logger
	RandomKeysSearcher randomkeys.Interface

	AlikeInstances             string
	CalicoCIDR                 int
	CalicoMTU                  int
	CalicoSubnet               string
	ClusterIPRange             string
	DockerDaemonCIDR           string
	DockerhubToken             string
	ExternalSNAT               bool
	GuestPrivateSubnetMaskBits int
	GuestPublicSubnetMaskBits  int
	GuestSubnetMaskBits        int
	HostAWSConfig              aws.Config
	IgnitionPath               string
	InstallationName           string
	IPAMNetworkRange           net.IPNet
	ClusterDomain              string
	NetworkSetupDockerImage    string
	PodInfraContainerImage     string
	RegistryDomain             string
	RegistryMirrors            []string
	RouteTables                string
	SSHUserList                string
	SSOPublicKey               string
}

type MachineDeploymentDrainer

type MachineDeploymentDrainer struct {
	*controller.Controller
}

type MachineDeploymentDrainerConfig

type MachineDeploymentDrainerConfig struct {
	Event     event.Interface
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	HostAWSConfig aws.Config
}

type TerminateUnhealthyNode

type TerminateUnhealthyNode struct {
	*controller.Controller
}

type TerminateUnhealthyNodeConfig

type TerminateUnhealthyNodeConfig struct {
	K8sClient k8sclient.Interface
	Event     event.Interface
	Locker    locker.Interface
	Logger    micrologger.Logger

	HostAWSConfig aws.Config
}

Directories

Path Synopsis
resource
region
Package region implements an operatorkit resource that addresses a problem where the tcnp resource would need to fetch the Cluster CR even though the MachineDeployment CR is reconciled.
Package region implements an operatorkit resource that addresses a problem where the tcnp resource would need to fetch the Cluster CR even though the MachineDeployment CR is reconciled.
tccpazs
Package tccpazs implements a resource to gather all distinct availability zones for a tenant cluster.
Package tccpazs implements a resource to gather all distinct availability zones for a tenant cluster.
tcnpazs
Package tcnpazs implements a resource to gather all private subnets for the configured availability zones of a node pool.
Package tcnpazs implements a resource to gather all private subnets for the configured availability zones of a node pool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL