stateintospec

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// State into spec annotation values
	StateIntoSpecAnnotation = k8s.StateIntoSpecAnnotation
	StateMergeIntoSpec      = k8s.StateMergeIntoSpec
	StateAbsentInSpec       = k8s.StateAbsentInSpec
)
View Source
const StateIntoSpecDefaultValueV1Beta1 = k8s.StateAbsentInSpec

Variables

View Source
var StateIntoSpecAnnotationValues = []string{
	StateMergeIntoSpec,
	StateAbsentInSpec,
}

Functions

func NewStateIntoSpecDefaulter added in v1.132.0

func NewStateIntoSpecDefaulter(client client.Client) k8s.Defaulter

func OutputOnlyFieldsAreUnderObservedState added in v1.132.0

func OutputOnlyFieldsAreUnderObservedState(gvk schema.GroupVersionKind) bool

func SupportsStateIntoSpecMerge added in v1.132.0

func SupportsStateIntoSpecMerge(gvk schema.GroupVersionKind) bool

Types

type StateIntoSpecDefaulter added in v1.132.0

type StateIntoSpecDefaulter struct {
	// contains filtered or unexported fields
}

StateIntoSpecDefaulter contains the required 'defaultValue' field and the optional 'userOverride' field.

func (*StateIntoSpecDefaulter) ApplyDefaults added in v1.132.0

func (v *StateIntoSpecDefaulter) ApplyDefaults(ctx context.Context, reconcilerType k8s.ReconcilerType, resource client.Object) (changed bool, err error)

type Warning

type Warning struct {
	Message string
}

type Warnings

type Warnings struct {
	Warnings []Warning
}

func RemoveStateIntoSpecFields

func RemoveStateIntoSpecFields(ctx context.Context, u *unstructured.Unstructured, preserveFieldFunc func(fieldPath fieldpath.Path) bool) (*Warnings, error)

func (*Warnings) AddWarningf

func (w *Warnings) AddWarningf(msg string, args ...any)

Jump to

Keyboard shortcuts

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