seedmanagement

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 5 Imported by: 1

Documentation

Overview

Package seedmanagement is the internal version of the API. +groupName=seedmanagement.gardener.cloud

Index

Constants

View Source
const (
	// ManagedSeedShootExists is a condition type for indicating whether the ManagedSeed's shoot exists.
	ManagedSeedShootExists gardencore.ConditionType = "ShootExists"
	// ManagedSeedShootReconciled is a condition type for indicating whether the ManagedSeed's shoot has been reconciled.
	ManagedSeedShootReconciled gardencore.ConditionType = "ShootReconciled"
	// ManagedSeedSeedRegistered is a condition type for indicating whether the ManagedSeed's seed has been registered,
	// either directly or by deploying gardenlet into the shoot.
	ManagedSeedSeedRegistered gardencore.ConditionType = "SeedRegistered"
)
View Source
const GroupName = "seedmanagement.gardener.cloud"

GroupName is the name of the seedmanagement API group.

View Source
const (
	// ManagedSeedShootName is the field selector path for finding
	// the Shoot of a seedmanagement.gardener.cloud/v1alpha1 ManagedSeed.
	ManagedSeedShootName = "spec.shoot.name"
)

Field path constants that are specific to the internal API representation.

Variables

View Source
var (
	// SchemeBuilder is a new Scheme Builder which registers our API.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a reference to the Scheme Builder's AddToScheme function.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource.

Types

type Bootstrap

type Bootstrap string

Bootstrap describes a mechanism for bootstrapping gardenlet connection to the Garden cluster.

const (
	// BootstrapServiceAccount means that a temporary service account should be used for bootstrapping gardenlet connection to the Garden cluster.
	BootstrapServiceAccount Bootstrap = "ServiceAccount"
	// BootstrapToken means that a bootstrap token should be used for bootstrapping gardenlet connection to the Garden cluster.
	BootstrapToken Bootstrap = "BootstrapToken"
	// BootstrapNone means that gardenlet connection to the Garden cluster should not be bootstrapped
	// and the gardenClientConnection.kubeconfig field should be used to connect to the Garden cluster.
	BootstrapNone Bootstrap = "None"
)

type Gardenlet

type Gardenlet struct {
	// Deployment specifies certain gardenlet deployment parameters, such as the number of replicas,
	// the image, etc.
	Deployment *GardenletDeployment
	// Config is the GardenletConfiguration used to configure gardenlet.
	Config runtime.Object
	// Bootstrap is the mechanism that should be used for bootstrapping gardenlet connection to the Garden cluster. One of ServiceAccount, BootstrapToken, None.
	// If set to ServiceAccount or BootstrapToken, a service account or a bootstrap token will be created in the garden cluster and used to compute the bootstrap kubeconfig.
	// If set to None, the gardenClientConnection.kubeconfig field will be used to connect to the Garden cluster. Defaults to BootstrapToken.
	Bootstrap *Bootstrap
	// MergeWithParent specifies whether the GardenletConfiguration of the parent gardenlet
	// should be merged with the specified GardenletConfiguration. Defaults to true.
	MergeWithParent *bool
}

Gardenlet specifies gardenlet deployment parameters and the GardenletConfiguration used to configure gardenlet.

func (*Gardenlet) DeepCopy

func (in *Gardenlet) DeepCopy() *Gardenlet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gardenlet.

func (*Gardenlet) DeepCopyInto

func (in *Gardenlet) DeepCopyInto(out *Gardenlet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GardenletDeployment

type GardenletDeployment struct {
	// ReplicaCount is the number of gardenlet replicas. Defaults to 1.
	ReplicaCount *int32
	// RevisionHistoryLimit is the number of old gardenlet ReplicaSets to retain to allow rollback. Defaults to 1.
	RevisionHistoryLimit *int32
	// ServiceAccountName is the name of the ServiceAccount to use to run gardenlet pods.
	ServiceAccountName *string
	// Image is the gardenlet container image.
	Image *Image
	// Resources are the compute resources required by the gardenlet container.
	Resources *corev1.ResourceRequirements
	// PodLabels are the labels on gardenlet pods.
	PodLabels map[string]string
	// PodAnnotations are the annotations on gardenlet pods.
	PodAnnotations map[string]string
	// AdditionalVolumes is the list of additional volumes that should be mounted by gardenlet containers.
	AdditionalVolumes []corev1.Volume
	// AdditionalVolumeMounts is the list of additional pod volumes to mount into the gardenlet container's filesystem.
	AdditionalVolumeMounts []corev1.VolumeMount
	// Env is the list of environment variables to set in the gardenlet container.
	Env []corev1.EnvVar
	// VPA specifies whether to enable VPA for gardenlet. Defaults to true.
	VPA *bool
}

GardenletDeployment specifies certain gardenlet deployment parameters, such as the number of replicas, the image, etc.

func (*GardenletDeployment) DeepCopy

func (in *GardenletDeployment) DeepCopy() *GardenletDeployment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GardenletDeployment.

func (*GardenletDeployment) DeepCopyInto

func (in *GardenletDeployment) DeepCopyInto(out *GardenletDeployment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Image

type Image struct {
	// Repository is the image repository.
	Repository *string
	// Tag is the image tag.
	Tag *string
	// PullPolicy is the image pull policy. One of Always, Never, IfNotPresent.
	// Defaults to Always if latest tag is specified, or IfNotPresent otherwise.
	PullPolicy *corev1.PullPolicy
}

Image specifies container image parameters.

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedSeed

type ManagedSeed struct {
	metav1.TypeMeta
	// Standard object metadata.
	metav1.ObjectMeta
	// Specification of the ManagedSeed.
	Spec ManagedSeedSpec
	// Most recently observed status of the ManagedSeed.
	Status ManagedSeedStatus
}

ManagedSeed represents a Shoot that is registered as Seed.

func (*ManagedSeed) DeepCopy

func (in *ManagedSeed) DeepCopy() *ManagedSeed

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedSeed.

func (*ManagedSeed) DeepCopyInto

func (in *ManagedSeed) DeepCopyInto(out *ManagedSeed)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedSeed) DeepCopyObject

func (in *ManagedSeed) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedSeedList

type ManagedSeedList struct {
	metav1.TypeMeta
	// Standard list object metadata.
	metav1.ListMeta
	// Items is the list of ManagedSeeds.
	Items []ManagedSeed
}

ManagedSeedList is a list of ManagedSeed objects.

func (*ManagedSeedList) DeepCopy

func (in *ManagedSeedList) DeepCopy() *ManagedSeedList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedSeedList.

func (*ManagedSeedList) DeepCopyInto

func (in *ManagedSeedList) DeepCopyInto(out *ManagedSeedList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedSeedList) DeepCopyObject

func (in *ManagedSeedList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedSeedSpec

type ManagedSeedSpec struct {
	// Shoot references a Shoot that should be registered as Seed.
	Shoot Shoot
	// SeedTemplate is a template for a Seed object, that should be used to register a given cluster as a Seed.
	// Either SeedTemplate or Gardenlet must be specified. When Seed is specified, the ManagedSeed controller will not deploy a gardenlet into the cluster
	// and an existing gardenlet reconciling the new Seed is required.
	SeedTemplate *gardencore.SeedTemplate
	// Gardenlet specifies that the ManagedSeed controller should deploy a gardenlet into the cluster
	// with the given deployment parameters and GardenletConfiguration.
	Gardenlet *Gardenlet
}

ManagedSeedSpec is the specification of a ManagedSeed.

func (*ManagedSeedSpec) DeepCopy

func (in *ManagedSeedSpec) DeepCopy() *ManagedSeedSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedSeedSpec.

func (*ManagedSeedSpec) DeepCopyInto

func (in *ManagedSeedSpec) DeepCopyInto(out *ManagedSeedSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedSeedStatus

type ManagedSeedStatus struct {
	// Conditions represents the latest available observations of a ManagedSeed's current state.
	Conditions []gardencore.Condition
	// ObservedGeneration is the most recent generation observed for this ManagedSeed. It corresponds to the
	// ManagedSeed's generation, which is updated on mutation by the API Server.
	ObservedGeneration int64
}

ManagedSeedStatus is the status of a ManagedSeed.

func (*ManagedSeedStatus) DeepCopy

func (in *ManagedSeedStatus) DeepCopy() *ManagedSeedStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedSeedStatus.

func (*ManagedSeedStatus) DeepCopyInto

func (in *ManagedSeedStatus) DeepCopyInto(out *ManagedSeedStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Shoot

type Shoot struct {
	// Name is the name of the Shoot that will be registered as Seed.
	Name string
}

Shoot identifies the Shoot that should be registered as Seed.

func (*Shoot) DeepCopy

func (in *Shoot) DeepCopy() *Shoot

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Shoot.

func (*Shoot) DeepCopyInto

func (in *Shoot) DeepCopyInto(out *Shoot)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
Package v1alpha1 is a version of the API.
Package v1alpha1 is a version of the API.

Jump to

Keyboard shortcuts

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