resourcemanager

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 24 Imported by: 0

Documentation

Index

Constants

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

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

	// UserName is the name that should be used for the secret that the gardener resource manager uses to
	// authenticate itself with the kube-apiserver (e.g., the common name in its client certificate).
	UserName = "gardener.cloud:system:gardener-resource-manager"
)

Variables

View Source
var (
	// IntervalWaitForDeployment is the interval used while waiting for the Deployments to become healthy
	// or deleted.
	IntervalWaitForDeployment = 5 * time.Second
	// TimeoutWaitForDeployment is the timeout used while waiting for the Deployments to become healthy
	// or deleted.
	TimeoutWaitForDeployment = 5 * time.Minute
)

Functions

func CentralLoggingConfiguration

func CentralLoggingConfiguration() (component.CentralLoggingConfig, error)

CentralLoggingConfiguration returns a fluent-bit parser and filters for the gardener-resource-manager logs.

Types

type Interface added in v1.24.0

type Interface interface {
	component.DeployWaiter
	// SetSecrets sets the secrets.
	SetSecrets(Secrets)
}

Interface contains functions for a gardener-resource-manager deployer.

func New

func New(
	client client.Client,
	namespace string,
	image string,
	replicas int32,
	values Values,
) Interface

New creates a new instance of the gardener-resource-manager.

type Secrets

type Secrets struct {
	// Kubeconfig enables the gardener-resource-manager to deploy resources into a different cluster than the one it is
	// running in.
	Kubeconfig component.Secret
	// Server is a secret containing a x509 TLS server certificate and key for the HTTPS server inside the
	// gardener-resource-manager (which is used for webhooks).
	Server component.Secret
	// RootCA is a secret containing the root CA secret of the target cluster.
	RootCA *component.Secret
}

Secrets is collection of secrets for the gardener-resource-manager.

type Values

type Values struct {
	// AlwaysUpdate if set to false then a resource will only be updated if its desired state differs from the actual state. otherwise, an update request will be always sent
	AlwaysUpdate *bool
	// ClusterIdentity is the identity of the managing cluster.
	ClusterIdentity *string
	// ConcurrentSyncs are the number of worker threads for concurrent reconciliation of resources
	ConcurrentSyncs *int32
	// HealthSyncPeriod describes the duration of how often the health of existing resources should be synced
	HealthSyncPeriod *time.Duration
	// LeaseDuration configures the lease duration for leader election
	LeaseDuration *time.Duration
	// MaxConcurrentHealthWorkers configures the number of worker threads for concurrent health reconciliation of resources
	MaxConcurrentHealthWorkers *int32
	// MaxConcurrentTokenRequestorWorkers configures the number of worker threads for concurrent token requestor reconciliations
	MaxConcurrentTokenRequestorWorkers *int32
	// MaxConcurrentRootCAPublisherWorkers configures the number of worker threads for concurrent root ca publishing reconciliations
	MaxConcurrentRootCAPublisherWorkers *int32
	// RenewDeadline configures the renew deadline for leader election
	RenewDeadline *time.Duration
	// ResourceClass is used to filter resource resources
	ResourceClass *string
	// RetryPeriod configures the retry period for leader election
	RetryPeriod *time.Duration
	// SyncPeriod configures the duration of how often existing resources should be synced
	SyncPeriod *time.Duration
	// TargetDisableCache disables the cache for target cluster and always talk directly to the API server (defaults to false)
	TargetDisableCache *bool
	// WatchedNamespace restricts the gardener-resource-manager to only watch ManagedResources in the defined namespace.
	// If not set the gardener-resource-manager controller watches for ManagedResources in all namespaces
	WatchedNamespace *string
}

Values holds the optional configuration options for the gardener resource 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