package fieldmanager
import "k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager"
Index ¶
- Constants
- func IgnoreManagedFieldsTimestampsTransformer( _ context.Context, newObj runtime.Object, oldObj runtime.Object, ) (res runtime.Object, err error)
- func NewManagedFieldsValidatingAdmissionController(wrap admission.Interface) admission.Interface
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 ¶
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.29.6
- Published
- Jun 12, 2024
- Platform
- js/wasm
- Imports
- 17 packages
- Last checked
- 1 second ago –
Tools for package owners.