controller

package
v8.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 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.

Types

type Cluster

type Cluster struct {
	*controller.Controller
}

func NewCluster

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

type ClusterConfig

type ClusterConfig struct {
	K8sClient k8sclient.Interface
	Locker    locker.Interface
	Logger    micrologger.Logger

	AccessLogsExpiration       int
	AdvancedMonitoringEC2      bool
	APIWhitelist               ClusterConfigAPIWhitelist
	CalicoCIDR                 int
	CalicoMTU                  int
	CalicoSubnet               string
	ClusterIPRange             string
	DeleteLoggingBucket        bool
	DockerDaemonCIDR           string
	EncrypterBackend           string
	GuestAvailabilityZones     []string
	GuestPrivateSubnetMaskBits int
	GuestPublicSubnetMaskBits  int
	GuestSubnetMaskBits        int
	GuestUpdateEnabled         bool
	HostAWSConfig              aws.Config
	IgnitionPath               string
	ImagePullProgressDeadline  string
	IncludeTags                bool
	InstallationName           string
	IPAMNetworkRange           net.IPNet
	LabelSelector              ClusterConfigLabelSelector
	NetworkSetupDockerImage    string
	OIDC                       ClusterConfigOIDC
	PodInfraContainerImage     string
	RegistryDomain             string
	Route53Enabled             bool
	RouteTables                string
	SSHUserList                string
	SSOPublicKey               string
	VaultAddress               string
}

type ClusterConfigAPIWhitelist

type ClusterConfigAPIWhitelist struct {
	Private ClusterConfigAPIWhitelistConfig
	Public  ClusterConfigAPIWhitelistConfig
}

ClusterConfigAPIWhitelist defines guest cluster k8s API whitelisting types.

type ClusterConfigAPIWhitelistConfig

type ClusterConfigAPIWhitelistConfig struct {
	Enabled    bool
	SubnetList string
}

ClusterConfigAPIWhitelistConfig defines guest cluster k8s API whitelisting.

type ClusterConfigLabelSelector

type ClusterConfigLabelSelector struct {
	Enabled          bool
	OverridenVersion string
}

type ClusterConfigOIDC

type ClusterConfigOIDC struct {
	ClientID      string
	IssuerURL     string
	UsernameClaim string
	GroupsClaim   string
}

ClusterConfigOIDC represents the configuration of the OIDC authorization provider.

type Drainer

type Drainer struct {
	*controller.Controller
}

func NewDrainer

func NewDrainer(config DrainerConfig) (*Drainer, error)

type DrainerConfig

type DrainerConfig struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger

	HostAWSConfig  aws.Config
	LabelSelector  DrainerConfigLabelSelector
	Route53Enabled bool
}

type DrainerConfigLabelSelector

type DrainerConfigLabelSelector struct {
	Enabled          bool
	OverridenVersion string
}

type MachineDeployment

type MachineDeployment struct {
	*controller.Controller
}

func NewMachineDeployment

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

type MachineDeploymentConfig

type MachineDeploymentConfig struct {
	K8sClient k8sclient.Interface
	Locker    locker.Interface
	Logger    micrologger.Logger

	CalicoCIDR                 int
	CalicoMTU                  int
	CalicoSubnet               string
	ClusterIPRange             string
	DeleteLoggingBucket        bool
	DockerDaemonCIDR           string
	EncrypterBackend           string
	GuestPrivateSubnetMaskBits int
	GuestPublicSubnetMaskBits  int
	GuestSubnetMaskBits        int
	HostAWSConfig              aws.Config
	IgnitionPath               string
	ImagePullProgressDeadline  string
	InstallationName           string
	IPAMNetworkRange           net.IPNet
	LabelSelector              MachineDeploymentConfigLabelSelector
	NetworkSetupDockerImage    string
	OIDC                       ClusterConfigOIDC
	PodInfraContainerImage     string
	RegistryDomain             string
	Route53Enabled             bool
	RouteTables                string
	SSHUserList                string
	SSOPublicKey               string
	VaultAddress               string
}

type MachineDeploymentConfigLabelSelector

type MachineDeploymentConfigLabelSelector struct {
	Enabled          bool
	OverridenVersion string
}

Directories

Path Synopsis
internal
ebs
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