Documentation ¶
Index ¶
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchManagedSeedSet(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func ToSelectableFields(managedSeedSet *seedmanagement.ManagedSeedSet) fields.Set
- type StatusStrategy
- type Strategy
- func (Strategy) AllowCreateOnUpdate() bool
- func (Strategy) AllowUnconditionalUpdate() bool
- func (Strategy) Canonicalize(obj runtime.Object)
- func (Strategy) NamespaceScoped() bool
- func (s Strategy) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (s Strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (Strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (Strategy) ValidateUpdate(ctx context.Context, newObj, oldObj runtime.Object) field.ErrorList
- func (Strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string
- func (Strategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchManagedSeedSet ¶
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 ¶
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 ¶
AllowCreateOnUpdate returns true if the object can be created by a PUT.
func (Strategy) AllowUnconditionalUpdate ¶
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 ¶
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 ¶
NamespaceScoped returns true if the object must be within a namespace.
func (Strategy) PrepareForCreate ¶
PrepareForCreate mutates some fields in the object before it's created.
func (Strategy) PrepareForUpdate ¶
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) ValidateUpdate ¶
ValidateUpdate validates the update on the given old and new object.
func (Strategy) WarningsOnCreate ¶ added in v1.34.0
WarningsOnCreate returns warnings to the client performing a create.