managedseedset

package
v1.102.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 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 MatchManagedSeedSet

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

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

func ToSelectableFields

func ToSelectableFields(managedSeedSet *seedmanagement.ManagedSeedSet) 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 ManagedSeedSets.

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 managedseedsets.

func NewStrategy

func NewStrategy() Strategy

NewStrategy defines the storage strategy for ManagedSeedSets.

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

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

WarningsOnCreate returns warnings to the client performing a create.

func (Strategy) WarningsOnUpdate

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