managedseedset

package
v1.41.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 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 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(ctx 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(ctx 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(obj 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(ctx context.Context, obj runtime.Object)

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

func (Strategy) PrepareForUpdate

func (s Strategy) PrepareForUpdate(ctx 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

func (Strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList

Validate validates the given object.

func (Strategy) ValidateUpdate

func (Strategy) ValidateUpdate(ctx 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(ctx context.Context, obj runtime.Object) []string

WarningsOnCreate returns warnings to the client performing a create.

func (Strategy) WarningsOnUpdate added in v1.34.0

func (Strategy) WarningsOnUpdate(ctx context.Context, obj, old 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