controller

package
v4.0.0-...-567bbdc Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 34 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
	WorkloadCluster workloadcluster.Interface

	ClusterRoleGeneral string
	ClusterRolePSP     string
	DNSServers         string
	IgnitionPath       string
	NTPServers         string
	OIDC               ClusterConfigOIDC
	Proxy              Proxy
	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
	WorkloadCluster workloadcluster.Interface

	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

	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
	WorkloadCluster workloadcluster.Interface

	ProjectName             string
	TerminateUnhealthyNodes bool
}

Jump to

Keyboard shortcuts

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