util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error)

func KubeApply

func KubeApply(c client.Client, obj runtime.Object) bool

func KubeCheck

func KubeCheck(c client.Client, obj runtime.Object) bool

func KubeClient

func KubeClient() client.Client

func KubeConfig

func KubeConfig() *rest.Config

func KubeCreateSkipExisting

func KubeCreateSkipExisting(c client.Client, obj runtime.Object) bool

func KubeDelete

func KubeDelete(c client.Client, obj runtime.Object) bool

func KubeObject

func KubeObject(text string) runtime.Object

Types

type APIGroupFilterFunc

type APIGroupFilterFunc func(*metav1.APIGroup) bool

type FastRESTMapper

type FastRESTMapper struct {
	Discovery discovery.DiscoveryInterface
	Filter    APIGroupFilterFunc
	Mapper    meta.RESTMapper
}

FastRESTMapper loads the mapper data from the server with filter and concurrency and rediscovers the mapping on meta.NoKindMatchError errors See https://github.com/kubernetes-sigs/controller-runtime/issues/537

func (*FastRESTMapper) KindFor

func (*FastRESTMapper) KindsFor

func (*FastRESTMapper) RESTMapping

func (m *FastRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)

func (*FastRESTMapper) RESTMappings

func (m *FastRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)

func (*FastRESTMapper) ReDiscover

func (m *FastRESTMapper) ReDiscover() error

func (*FastRESTMapper) ReDiscoverGroupResources

func (m *FastRESTMapper) ReDiscoverGroupResources(gr *restmapper.APIGroupResources) error

func (*FastRESTMapper) ReDiscoverOnError

func (m *FastRESTMapper) ReDiscoverOnError(err error) bool

func (*FastRESTMapper) ResourceFor

func (*FastRESTMapper) ResourceSingularizer

func (m *FastRESTMapper) ResourceSingularizer(resource string) (string, error)

func (*FastRESTMapper) ResourcesFor

Jump to

Keyboard shortcuts

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