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.30.0-rc.2
Published
Apr 11, 2024
Platform
js/wasm
Imports
17 packages
Last checked
3 minutes ago

Tools for package owners.