controller

package
v5.0.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 75 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
	AzureMetricsCollector collector.AzureAPIMetrics
	CPAzureClientSet      client.AzureClientSet
	ProjectName           string
	RegistryDomain        string

	Ignition        setting.Ignition
	OIDC            setting.OIDC
	SSOPublicKey    string
	TemplateVersion string

	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
	AzureMetricsCollector collector.AzureAPIMetrics
	// Azure client set used when managing control plane resources
	CPAzureClientSet *client.AzureClientSet
	ProjectName      string

	ClusterVNetMaskBits int

	Ignition         setting.Ignition
	IPAMNetworkRange net.IPNet
	OIDC             setting.OIDC
	SSHUserList      employees.SSHUserList
	SSOPublicKey     string
	TemplateVersion  string

	DockerhubToken  string
	RegistryDomain  string
	RegistryMirrors []string

	Debug     setting.Debug
	SentryDSN string
}

type AzureMachinePoolConfig

type AzureMachinePoolConfig struct {
	APIServerSecurePort   int
	Azure                 setting.Azure
	AzureMetricsCollector collector.AzureAPIMetrics
	Calico                azureconfig.CalicoConfig
	ClusterIPRange        string
	CPAzureClientSet      *client.AzureClientSet
	CredentialProvider    credential.Provider
	DockerhubToken        string
	EtcdPrefix            string
	Ignition              setting.Ignition
	InstallationName      string
	K8sClient             k8sclient.Interface
	Locker                locker.Interface
	Logger                micrologger.Logger
	OIDC                  setting.OIDC
	RegistryDomain        string
	SentryDSN             string
	SSHUserList           employees.SSHUserList
	SSOPublicKey          string
	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