resourceclaimspec

package
v1.35.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DRAAdminAccessFeatureInUse

func DRAAdminAccessFeatureInUse(spec *resource.ResourceClaimSpec) bool

DRAAdminAccessFeatureInUse checks whether the feature is in use in the spec.

func DRAConsumableCapacityFeatureInUse

func DRAConsumableCapacityFeatureInUse(spec *resource.ResourceClaimSpec) bool

DRAConsumableCapacityFeatureInUse checks whether the feature is in use in the spec.

func DropDisabledFields

func DropDisabledFields(new, old *resource.ResourceClaimSpec)

DropDisabledFields removes disabled fields from the spec unless they were in use there before.

Theoretically some features could be in use in an old ResourceClaim status and not in use in the spec. This can only occur in a spec update, which is currently prevented because the entire spec is immutable. Even if it was allowed, preventing adding disabled fields to the spec is the right thing to do regardless of what may have ended up in the status earlier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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