prune

package
v0.28.203 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRESTMappings

func GetRESTMappings(mapper meta.RESTMapper, pruneResources []Resource, namespaceSpecified bool) (namespaced, nonNamespaced []*meta.RESTMapping, err error)

if namespace is explicitly specified, the default allow list should not include non-namespaced resources. if pruneResources is specified by user, respect the user setting.

Types

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func ParseResources

func ParseResources(mapper meta.RESTMapper, gvks []string) ([]Resource, error)

func (Resource) String

func (pr Resource) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL