apiextensions-apiserver: k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning Index | Files

package pruning

import "k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning"

Index

Package Files

algorithm.go

func Prune Uses

func Prune(obj interface{}, s *structuralschema.Structural, isResourceRoot bool)

Prune removes object fields in obj which are not specified in s. It skips TypeMeta and ObjectMeta fields if XEmbeddedResource is set to true, or for the root if isResourceRoot=true, i.e. it does not prune unknown metadata fields.

Package pruning imports 1 packages (graph) and is imported by 2 packages. Updated 2019-11-08. Refresh now. Tools for package owners.