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 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 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 ¶
Click to show internal directories.
Click to hide internal directories.