kubecontrollermanager

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName is the name of the service of the kube-controller-manager.
	ServiceName = "kube-controller-manager"

	// SecretName is a constant for the secret name for the kube-controller-manager's kubeconfig secret.
	SecretName = "kube-controller-manager"
	// SecretNameServer is the name of the kube-controller-manager server certificate secret.
	SecretNameServer = "kube-controller-manager-server"

	// LabelRole is a constant for the value of a label with key 'role'.
	LabelRole = "controller-manager"
)

Variables

This section is empty.

Functions

func CentralLoggingConfiguration

func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)

CentralLoggingConfiguration returns a fluent-bit parser and filter for the kube-controller-manager logs.

Types

type KubeControllerManager

type KubeControllerManager interface {
	component.DeployWaiter
	component.MonitoringComponent
	// SetSecrets sets the secrets for the kube-controller-manager.
	SetSecrets(Secrets)
	// SetReplicaCount sets the replica count for the kube-controller-manager.
	SetReplicaCount(replicas int32)
	// WaitForControllerToBeActive checks whether kube-controller-manager has
	// recently written to the Endpoint object holding the leader information. If yes, it is active.
	WaitForControllerToBeActive(ctx context.Context) error
	// SetShootClient sets the shoot client used to deploy resources into the Shoot API server.
	SetShootClient(c client.Client)
}

KubeControllerManager contains functions for a kube-controller-manager deployer.

func New

func New(
	logger logrus.FieldLogger,
	seedClient client.Client,
	namespace string,
	version *semver.Version,
	image string,
	config *gardencorev1beta1.KubeControllerManagerConfig,
	podNetwork *net.IPNet,
	serviceNetwork *net.IPNet,
) KubeControllerManager

New creates a new instance of DeployWaiter for the kube-controller-manager.

type Secrets

type Secrets struct {
	// Kubeconfig is a secret that contains a kubeconfig which can be used by the kube-controller-manager to communicate with the kube-apiserver.
	Kubeconfig component.Secret
	// Server is a secret containing a x509 TLS server certificate and key for the HTTPS server inside the kube-controller-manager (which is used for metrics and health checks).
	Server component.Secret
	// CA is a secret containing a root CA x509 certificate and key that is used for the flags.
	// --cluster-signing-cert-file
	// --cluster-signing-key-file
	// --root-ca-file
	CA component.Secret
	// ServiceAccountKey is a secret containing a PEM-encoded private RSA or ECDSA key used to sign service account tokens.
	// used for the flag: --service-account-private-key-file
	ServiceAccountKey component.Secret
}

Secrets is collection of secrets for the kube-controller-manager.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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