managedseed

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func GetShootName added in v1.19.0

func GetShootName(managedSeed *seedmanagement.ManagedSeed) string

GetShootName returns spec.shoot.name of the given ManagedSeed if it's specified, or an empty string if it's not.

func MatchManagedSeed

func MatchManagedSeed(label labels.Selector, field fields.Selector) storage.SelectionPredicate

MatchManagedSeed returns a generic matcher for a given label and field selector.

func ShootNameTriggerFunc

func ShootNameTriggerFunc(obj runtime.Object) string

ShootNameTriggerFunc returns spec.shoot.name of the given ManagedSeed.

func ToSelectableFields

func ToSelectableFields(managedSeed *seedmanagement.ManagedSeed) fields.Set

ToSelectableFields returns a field set that represents the object.

Types

type StatusStrategy

type StatusStrategy struct {
	Strategy
}

StatusStrategy defines the strategy for storing seeds statuses.

func NewStatusStrategy

func NewStatusStrategy() StatusStrategy

NewStatusStrategy defines the storage strategy for the status subresource of ManagedSeeds.

func (StatusStrategy) PrepareForUpdate

func (s StatusStrategy) PrepareForUpdate(_ context.Context, obj, old runtime.Object)

PrepareForUpdate is invoked on update before validation to normalize the object. For example: remove fields that are not to be persisted, sort order-insensitive list fields, etc. This should not remove fields whose presence would be considered a validation error.

func (StatusStrategy) ValidateUpdate

func (StatusStrategy) ValidateUpdate(_ context.Context, obj, old runtime.Object) field.ErrorList

ValidateUpdate validates the update on the given old and new object.

type Strategy

type Strategy struct {
	runtime.ObjectTyper
	names.NameGenerator
}

Strategy defines the strategy for storing managedseeds.

func NewStrategy

func NewStrategy() Strategy

NewStrategy defines the storage strategy for ManagedSeeds.

func (Strategy) AllowCreateOnUpdate

func (Strategy) AllowCreateOnUpdate() bool

AllowCreateOnUpdate returns true if the object can be created by a PUT.

func (Strategy) AllowUnconditionalUpdate

func (Strategy) AllowUnconditionalUpdate() bool

AllowUnconditionalUpdate returns true if the object can be updated unconditionally (irrespective of the latest resource version), when there is no resource version specified in the object.

func (Strategy) Canonicalize

func (Strategy) Canonicalize(_ runtime.Object)

Canonicalize allows an object to be mutated into a canonical form. This ensures that code that operates on these objects can rely on the common form for things like comparison. Canonicalize is invoked after validation has succeeded but before the object has been persisted. This method may mutate the object.

func (Strategy) NamespaceScoped

func (Strategy) NamespaceScoped() bool

NamespaceScoped returns true if the object must be within a namespace.

func (Strategy) PrepareForCreate

func (s Strategy) PrepareForCreate(_ context.Context, obj runtime.Object)

PrepareForCreate mutates some fields in the object before it's created.

func (Strategy) PrepareForUpdate

func (s Strategy) PrepareForUpdate(_ context.Context, obj, old runtime.Object)

PrepareForUpdate is invoked on update before validation to normalize the object. For example: remove fields that are not to be persisted, sort order-insensitive list fields, etc. This should not remove fields whose presence would be considered a validation error.

func (Strategy) Validate

Validate validates the given object.

func (Strategy) ValidateUpdate

func (Strategy) ValidateUpdate(_ context.Context, newObj, oldObj runtime.Object) field.ErrorList

ValidateUpdate validates the update on the given old and new object.

func (Strategy) WarningsOnCreate added in v1.34.0

func (Strategy) WarningsOnCreate(_ context.Context, _ runtime.Object) []string

WarningsOnCreate returns warnings to the client performing a create.

func (Strategy) WarningsOnUpdate added in v1.34.0

func (Strategy) WarningsOnUpdate(_ context.Context, _, _ runtime.Object) []string

WarningsOnUpdate returns warnings to the client performing the update.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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