clusteridentity

package
v1.65.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ManagedResourceControlName is the name of the ManagedResource containing the resource specifications.
	ManagedResourceControlName = "cluster-identity"
	// ShootManagedResourceName is the name of the ManagedResource containing the resource specifications.
	ShootManagedResourceName = "shoot-core-" + ManagedResourceControlName
)

Variables

View Source
var TimeoutWaitForManagedResource = 2 * time.Minute

TimeoutWaitForManagedResource is the timeout used while waiting for the ManagedResources to become healthy or deleted.

Functions

func IsClusterIdentityEmptyOrFromOrigin added in v1.64.0

func IsClusterIdentityEmptyOrFromOrigin(ctx context.Context, c client.Client, origin string) (bool, error)

IsClusterIdentityEmptyOrFromOrigin checks if the cluster-identity config map does not exist or is from the same origin

Types

type Interface added in v1.24.0

type Interface interface {
	component.DeployWaiter
	SetIdentity(string)
}

Interface contains functions for managing cluster identities.

func NewForSeed added in v1.24.0

func NewForSeed(c client.Client, namespace, identity string) Interface

NewForSeed creates new instance of Deployer for the seed's cluster identity.

func NewForShoot added in v1.24.0

func NewForShoot(c client.Client, namespace, identity string) Interface

NewForShoot creates new instance of Deployer for the shoot's cluster identity.

func NewIgnoredManagedResourceForSeed added in v1.64.0

func NewIgnoredManagedResourceForSeed(c client.Client, namespace, identity string) Interface

NewIgnoredManagedResourceForSeed creates new instance of Deployer for the seed's cluster identity for migration purposes. The cluster-identity config map is annotated with "resources.gardener.cloud/mode: Ignore". TODO(oliver-goetz): Remove this migration scenario in a future release

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