apiserverk8s.io/apiserver/pkg/endpoints/handlers/fieldmanager Index | Files

package fieldmanager

import "k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager"

Index

Constants

const InvalidManagedFieldsAfterMutatingAdmissionWarningFormat = "" /* 162 byte string literal not displayed */

InvalidManagedFieldsAfterMutatingAdmissionWarningFormat is the warning that a client receives when a create/update/patch request results in invalid managedFields after going through the admission chain.

Functions

func IgnoreManagedFieldsTimestampsTransformer

func IgnoreManagedFieldsTimestampsTransformer(
	_ context.Context,
	newObj runtime.Object,
	oldObj runtime.Object,
) (res runtime.Object, err error)

IgnoreManagedFieldsTimestampsTransformer reverts timestamp updates if the non-managed parts of the object are equivalent

func NewManagedFieldsValidatingAdmissionController

func NewManagedFieldsValidatingAdmissionController(wrap admission.Interface) admission.Interface

NewManagedFieldsValidatingAdmissionController validates the managedFields after calling the provided admission and resets them to their original state if they got changed to an invalid value

Source Files

admission.go equality.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
18 packages
Last checked
1 hour ago

Tools for package owners.