controller

package
v4.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 50 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.

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Cluster

type Cluster struct {
	*controller.Controller
}

func NewCluster

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

type ClusterConfig

type ClusterConfig struct {
	BaseDomain     basedomain.Interface
	CertsSearcher  certs.Interface
	Event          recorder.Interface
	FileSystem     afero.Fs
	K8sClient      k8sclient.Interface
	Logger         micrologger.Logger
	PodCIDR        podcidr.Interface
	Tenant         tenantcluster.Interface
	ReleaseVersion releaseversion.Interface

	APIIP                      string
	CertTTL                    string
	ClusterIPRange             string
	DNSIP                      string
	ClusterDomain              string
	KiamWatchDogEnabled        bool
	NewCommonClusterObjectFunc func() infrastructurev1alpha3.CommonClusterObject
	Provider                   string
	RawAppDefaultConfig        string
	RawAppOverrideConfig       string
	RegistryDomain             string
}

ClusterConfig contains necessary dependencies and settings for CAPI's Cluster CRD controller implementation.

type ControlPlane

type ControlPlane struct {
	*controller.Controller
}

func NewControlPlane

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

type ControlPlaneConfig

type ControlPlaneConfig struct {
	BaseDomain     basedomain.Interface
	Event          recorder.Interface
	K8sClient      k8sclient.Interface
	Logger         micrologger.Logger
	NodeCount      nodecount.Interface
	Tenant         tenantcluster.Interface
	ReleaseVersion releaseversion.Interface

	Provider string
}

ControlPlaneConfig contains necessary dependencies and settings for the ControlPlane controller implementation.

type MachineDeployment

type MachineDeployment struct {
	*controller.Controller
}

func NewMachineDeployment

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

type MachineDeploymentConfig

type MachineDeploymentConfig struct {
	BaseDomain     basedomain.Interface
	Event          recorder.Interface
	K8sClient      k8sclient.Interface
	Logger         micrologger.Logger
	NodeCount      nodecount.Interface
	Tenant         tenantcluster.Interface
	ReleaseVersion releaseversion.Interface

	Provider string
}

Directories

Path Synopsis
resource
app
certconfig
NOTE this file is copied from operatorkit for migration purposes.
NOTE this file is copied from operatorkit for migration purposes.

Jump to

Keyboard shortcuts

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