gardener

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GardenerDeletionConfirmationAnnotation = "confirmation.gardener.cloud/deletion"
)

Variables

This section is empty.

Functions

func ComputeShootName

func ComputeShootName(apiServerMeta *metav1.ObjectMeta, project string) string

ComputeShootName computes the name of a shoot based on the given APIServer metadata and the project name.

func HashAsNumber

func HashAsNumber(data ...string) int

HashAsNumber takes any number of strings and returns a hash value as an integer. Note that this function is not cyptographically secure.

func InjectShootManifestInGardenerStatus

func InjectShootManifestInGardenerStatus(status *openmcpv1alpha1.GardenerStatus, shoot *gardenv1beta1.Shoot) error

InjectShootManifestInGardenerStatus takes a GardenerStatus pointer and a shoot object and injects the shoot manifest into the GardenerStatus. It removes some metadata fields as well as the shoot's status.

Types

type AuditLogAnnotations

type AuditLogAnnotations map[string]string

type GardenerConnector

func (*GardenerConnector) GetShoot

GetShoot tries to fetch the corresponding shoot cluster. If there is a shoot reference in the InternalControlPlane's status, but the shoot is not found, an error is returned unless inDeletion is true. If there is no shoot reference, the function searches for a shoot with a fitting back-reference and returns that, if found. Otherwise, nil is returned.

func (*GardenerConnector) GetShootName

func (*GardenerConnector) GetShootNameNoConfig

func (gc *GardenerConnector) GetShootNameNoConfig(sh *gardenv1beta1.Shoot, as *openmcpv1alpha1.APIServer) (string, error)

func (*GardenerConnector) Shoot_v1beta1_from_APIServer_v1alpha1

func (gc *GardenerConnector) Shoot_v1beta1_from_APIServer_v1alpha1(ctx context.Context, as *openmcpv1alpha1.APIServer, sh *gardenv1beta1.Shoot) error

Shoot_v1beta1_from_APIServer_v1alpha1 updates a v1beta1.Shoot based on a v1alpha1.APIServer. Since most fields are immutable, the values of an existing shoot will be preserved in the most cases. For the k8s version, there is a special logic in place which prevents downgrades and allows upgrades.

Jump to

Keyboard shortcuts

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