prune

package
v0.28.13 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

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