kubernetes/pkg/registry/resource/resourceclaim/strategy.go

type resourceclaimStrategy

var Strategy

func (resourceclaimStrategy) NamespaceScoped() bool {}

// GetResetFields returns the set of fields that get reset by the strategy and
// should not be modified by the user. For a new ResourceClaim that is the
// status.
func (resourceclaimStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {}

func (resourceclaimStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {}

func (resourceclaimStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {}

func (resourceclaimStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {}

func (resourceclaimStrategy) Canonicalize(obj runtime.Object) {}

func (resourceclaimStrategy) AllowCreateOnUpdate() bool {}

func (resourceclaimStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {}

func (resourceclaimStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {}

func (resourceclaimStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {}

func (resourceclaimStrategy) AllowUnconditionalUpdate() bool {}

type resourceclaimStatusStrategy

var StatusStrategy

// GetResetFields returns the set of fields that get reset by the strategy and
// should not be modified by the user. For a status update that is the spec.
func (resourceclaimStatusStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {}

func (resourceclaimStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {}

func (resourceclaimStatusStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {}

// WarningsOnUpdate returns warnings for the given update.
func (resourceclaimStatusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {}

// Match returns a generic matcher for a given label and field selector.
func Match(label labels.Selector, field fields.Selector) storage.SelectionPredicate {}

// GetAttrs returns labels and fields of a given object for filtering purposes.
func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {}

// toSelectableFields returns a field set that represents the object
func toSelectableFields(claim *resource.ResourceClaim) fields.Set {}

// dropDisabledFields removes fields which are covered by a feature gate.
func dropDisabledFields(newClaim, oldClaim *resource.ResourceClaim) {}

func dropDisabledDRAAdminAccessFields(newClaim, oldClaim *resource.ResourceClaim) {}

func draAdminAccessFeatureInUse(claim *resource.ResourceClaim) bool {}