controller

package
v5.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 68 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 NewAzureCluster

func NewAzureCluster(config AzureClusterConfig) (*controller.Controller, error)

func NewAzureConfig

func NewAzureConfig(config AzureConfigConfig) (*controller.Controller, error)

func NewAzureMachinePool

func NewAzureMachinePool(config AzureMachinePoolConfig) (*controller.Controller, error)

func NewAzureMachinePoolResourceSet

func NewAzureMachinePoolResourceSet(config AzureMachinePoolConfig) ([]resource.Interface, error)

func NewCluster

func NewCluster(config ClusterConfig) (*controller.Controller, error)

func NewClusterResourceSet

func NewClusterResourceSet(config ClusterConfig) ([]resource.Interface, error)

func NewMachinePool

func NewMachinePool(config MachinePoolConfig) (*controller.Controller, error)

func NewMachinePoolResourceSet

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

Types

type AzureClusterConfig

type AzureClusterConfig struct {
	CredentialProvider credential.Provider
	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 AzureConfig

type AzureConfig struct {
	*controller.Controller
}

type AzureConfigConfig

type AzureConfigConfig 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
	RegistryDomain            string
	RegistryMirrors           []string

	ClusterVNetMaskBits int

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

	Debug     setting.Debug
	SentryDSN string
}

type AzureMachinePoolConfig

type AzureMachinePoolConfig struct {
	APIServerSecurePort       int
	Azure                     setting.Azure
	Calico                    azureconfig.CalicoConfig
	ClusterIPRange            string
	CPAzureClientSet          *client.AzureClientSet
	CredentialProvider        credential.Provider
	EtcdPrefix                string
	GSClientCredentialsConfig auth.ClientCredentialsConfig
	Ignition                  setting.Ignition
	InstallationName          string
	K8sClient                 k8sclient.Interface
	Locker                    locker.Interface
	Logger                    micrologger.Logger
	OIDC                      setting.OIDC
	RegistryDomain            string
	SentryDSN                 string
	SSHUserList               string
	SSOPublicKey              string
	VMSSCheckWorkers          int
	VMSSMSIEnabled            bool
}

type ClusterConfig

type ClusterConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
	SentryDSN string

	Debug setting.Debug
}

type MachinePoolConfig

type MachinePoolConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
	SentryDSN string
}

Jump to

Keyboard shortcuts

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