kubescheduler

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecretName is a constant for the secret name for the kube-scheduler's kubeconfig secret.
	SecretName = "kube-scheduler"
	// SecretNameServer is the name of the kube-scheduler server certificate secret.
	SecretNameServer = "kube-scheduler-server"
	// LabelRole is a constant for the value of a label with key 'role' whose value is 'scheduler'.
	LabelRole = "scheduler"
	// DataKeyComponentConfig is a constant for the key of the data map in a ConfigMap whose value is the
	// component configuration of the kube-scheduler.
	DataKeyComponentConfig = "config.yaml"
	// PortNameMetrics is a constant for the name of the metrics port of the kube-scheduler.
	PortNameMetrics = "metrics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeScheduler

type KubeScheduler interface {
	component.DeployWaiter
	// SetSecrets sets the secrets for the kube-scheduler.
	SetSecrets(Secrets)
}

KubeScheduler contains function for a kube-scheduler deployer.

func New

func New(
	client client.Client,
	namespace string,
	version *semver.Version,
	image string,
	replicas int32,
	config *gardencorev1beta1.KubeSchedulerConfig,
) KubeScheduler

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

type Secret

type Secret struct {
	// Name is the name of the Kubernetes secret object.
	Name string
	// Checksum is the checksum of the secret's data.
	Checksum string
}

Secret is a structure that contains information about a Kubernetes secret which is managed externally.

type Secrets

type Secrets struct {
	// Kubeconfig is a secret which can be used by the kube-scheduler to communicate to the kube-apiserver.
	Kubeconfig Secret
	// Server is a secret for the HTTPS server inside the kube-scheduler (which is used for metrics and health checks).
	Server Secret
}

Secrets is collection of secrets for the kube-scheduler.

Jump to

Keyboard shortcuts

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