leasecandidate

package
v1.32.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Strategy is the default logic that applies when creating and updating leasecandidate objects.

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 ToSelectableFields

func ToSelectableFields(leasecandidate *coordination.LeaseCandidate) fields.Set

ToSelectableFields returns a field set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.

Types

type LeaseCandidateStrategy

type LeaseCandidateStrategy struct {
	runtime.ObjectTyper
	names.NameGenerator
}

LeaseCandidateStrategy implements verification logic for leasecandidates.

func (LeaseCandidateStrategy) AllowCreateOnUpdate

func (LeaseCandidateStrategy) AllowCreateOnUpdate() bool

AllowCreateOnUpdate is true for leasecandidate; this means you may create one with a PUT request.

func (LeaseCandidateStrategy) AllowUnconditionalUpdate

func (LeaseCandidateStrategy) AllowUnconditionalUpdate() bool

AllowUnconditionalUpdate is the default update policy for leasecandidate objects.

func (LeaseCandidateStrategy) Canonicalize

func (LeaseCandidateStrategy) Canonicalize(obj runtime.Object)

Canonicalize normalizes the object after validation.

func (LeaseCandidateStrategy) NamespaceScoped

func (LeaseCandidateStrategy) NamespaceScoped() bool

NamespaceScoped returns true because all leasecandidate' need to be within a namespace.

func (LeaseCandidateStrategy) PrepareForCreate

func (LeaseCandidateStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object)

PrepareForCreate prepares leasecandidate for creation.

func (LeaseCandidateStrategy) PrepareForUpdate

func (LeaseCandidateStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForUpdate clears fields that are not allowed to be set by end users on update.

func (LeaseCandidateStrategy) Validate

Validate validates a new leasecandidate.

func (LeaseCandidateStrategy) ValidateUpdate

func (LeaseCandidateStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateUpdate is the default update validation for an end user.

func (LeaseCandidateStrategy) WarningsOnCreate

func (LeaseCandidateStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string

WarningsOnCreate returns warnings for the creation of the given object.

func (LeaseCandidateStrategy) WarningsOnUpdate

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

WarningsOnUpdate returns warnings for the given update.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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