controller

package
v0.0.0-...-3e42cda Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 35 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 IsInvalidVersion

func IsInvalidVersion(err error) bool

IsInvalidVersion asserts invalidVersionError.

Types

type Cluster

type Cluster struct {
	*controller.Controller
}

func NewCluster

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

type ClusterConfig

type ClusterConfig struct {
	CertsSearcher certs.Interface
	K8sClient     k8sclient.Interface
	Logger        micrologger.Logger
	TenantCluster tenantcluster.Interface

	ClusterRoleGeneral string
	ClusterRolePSP     string
	CRDLabelSelector   string
	DNSServers         string
	GuestUpdateEnabled bool
	IgnitionPath       string
	NTPServers         string
	OIDC               ClusterConfigOIDC
	Proxy              Proxy
	ProjectName        string
	SSOPublicKey       string

	DockerhubToken  string
	RegistryDomain  string
	RegistryMirrors []string
}

type ClusterConfigOIDC

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

ClusterConfigOIDC represents the configuration of the OIDC authorization provider.

type Deleter

type Deleter struct {
	*controller.Controller
}

func NewDeleter

func NewDeleter(config DeleterConfig) (*Deleter, error)

type DeleterConfig

type DeleterConfig struct {
	CertsSearcher certs.Interface
	K8sClient     k8sclient.Interface
	Logger        micrologger.Logger
	TenantCluster tenantcluster.Interface

	CRDLabelSelector string
	ProjectName      string
}

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

	CRDLabelSelector string
	ProjectName      string
}

type Proxy

type Proxy struct {
	HTTP    string
	HTTPS   string
	NoProxy []string
}

type UnhealthyNodeTerminator

type UnhealthyNodeTerminator struct {
	*controller.Controller
}

type UnhealthyNodeTerminatorConfig

type UnhealthyNodeTerminatorConfig struct {
	K8sClient     k8sclient.Interface
	Logger        micrologger.Logger
	TenantCluster tenantcluster.Interface

	ProjectName             string
	TerminateUnhealthyNodes bool
}

Jump to

Keyboard shortcuts

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