controller

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 55 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 NewMachinePoolResourceSet

func NewMachinePoolResourceSet(config MachinePoolConfig) ([]resource.Interface, error)

Types

type AzureCluster

type AzureCluster struct {
	*controller.Controller
}

func NewAzureCluster

func NewAzureCluster(config AzureClusterConfig) (*AzureCluster, error)

type AzureClusterConfig

type AzureClusterConfig struct {
	InstallationName string
	K8sClient        k8sclient.Interface
	Logger           micrologger.Logger

	Flag  *flag.Flag
	Viper *viper.Viper

	Azure            setting.Azure
	CPAzureClientSet client.AzureClientSet
	ProjectName      string
	RegistryDomain   string

	Ignition         setting.Ignition
	OIDC             setting.OIDC
	SSOPublicKey     string
	TemplateVersion  string
	VMSSCheckWorkers int

	SentryDSN string
}

type Cluster

type Cluster struct {
	*controller.Controller
}

func NewCluster

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

type ClusterConfig

type ClusterConfig struct {
	CredentialProvider credential.Provider
	InstallationName   string
	K8sClient          k8sclient.Interface
	Locker             locker.Interface
	Logger             micrologger.Logger

	Azure setting.Azure
	// Azure client set used when managing control plane resources
	CPAzureClientSet *client.AzureClientSet
	// Azure credentials used to create Azure client set for tenant clusters
	GSClientCredentialsConfig auth.ClientCredentialsConfig
	ProjectName               string

	GuestSubnetMaskBits int

	Ignition         setting.Ignition
	IPAMNetworkRange net.IPNet
	OIDC             setting.OIDC
	SSOPublicKey     string
	TemplateVersion  string
	VMSSCheckWorkers int

	DockerhubToken  string
	RegistryDomain  string
	RegistryMirrors []string

	SentryDSN string
}

type MachinePool

type MachinePool struct {
	*controller.Controller
}

func NewMachinePool

func NewMachinePool(config MachinePoolConfig) (*MachinePool, error)

type MachinePoolConfig

type MachinePoolConfig struct {
	CredentialProvider        credential.Provider
	GSClientCredentialsConfig auth.ClientCredentialsConfig
	GuestSubnetMaskBits       int
	InstallationName          string
	IPAMNetworkRange          net.IPNet
	K8sClient                 k8sclient.Interface
	Locker                    locker.Interface
	Logger                    micrologger.Logger
	RegistryDomain            string
	SentryDSN                 string
}

Jump to

Keyboard shortcuts

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