Documentation ¶
Index ¶
- func GetFilteredShootList(shootLister gardencorelisters.ShootLister, predicateFn func(*core.Shoot) bool) ([]*core.Shoot, error)
- func GetManagedSeed(ctx context.Context, seedManagementClient versioned.Interface, ...) (*seedmanagementv1alpha1.ManagedSeed, error)
- func IsSeedUsedByShoot(seedName string, shoots []*core.Shoot) bool
- func NewAttributesWithName(a admission.Attributes, name string) admission.Attributes
- func ProjectForNamespaceFromInternalLister(projectLister internalversion.ProjectLister, namespaceName string) (*core.Project, error)
- func SkipVerification(operation admission.Operation, metadata metav1.ObjectMeta) bool
- func ValidateZoneRemovalFromSeeds(oldSeedSpec, newSeedSpec *core.SeedSpec, seedName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFilteredShootList ¶ added in v1.58.0
func GetFilteredShootList(shootLister gardencorelisters.ShootLister, predicateFn func(*core.Shoot) bool) ([]*core.Shoot, error)
GetFilteredShootList returns shoots returned by the shootLister filtered via the predicateFn.
func GetManagedSeed ¶ added in v1.40.0
func GetManagedSeed(ctx context.Context, seedManagementClient versioned.Interface, shootNamespace, shootName string) (*seedmanagementv1alpha1.ManagedSeed, error)
GetManagedSeed gets the ManagedSeed resource for the given shoot namespace and name, by searching for all ManagedSeeds in the shoot namespace that have spec.shoot.name set to the shoot name. If no such ManagedSeeds are found, nil is returned.
func IsSeedUsedByShoot ¶ added in v1.10.0
IsSeedUsedByShoot checks whether there is a shoot cluster referencing the provided seed name
func NewAttributesWithName ¶ added in v1.61.0
func NewAttributesWithName(a admission.Attributes, name string) admission.Attributes
NewAttributesWithName returns admission.Attributes with the given name and all other attributes kept same.
func ProjectForNamespaceFromInternalLister ¶ added in v1.40.0
func ProjectForNamespaceFromInternalLister(projectLister internalversion.ProjectLister, namespaceName string) (*core.Project, error)
ProjectForNamespaceFromInternalLister returns the Project responsible for a given <namespace>. It lists all Projects via the given lister, iterates over them and tries to identify the Project by looking for the namespace name in the project spec.
func SkipVerification ¶
func SkipVerification(operation admission.Operation, metadata metav1.ObjectMeta) bool
SkipVerification is a common function to skip object verification during admission
func ValidateZoneRemovalFromSeeds ¶ added in v1.59.0
func ValidateZoneRemovalFromSeeds(oldSeedSpec, newSeedSpec *core.SeedSpec, seedName string, shootLister gardencorelisters.ShootLister, kind string) error
ValidateZoneRemovalFromSeeds returns an error when zones are removed from the old seed while it is still in use by shoots.
Types ¶
This section is empty.