client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExcludedResource

func IsExcludedResource(gvk schema.GroupVersionKind) bool

func NewCachingClient

func NewCachingClient(cache cache.Cache, config *rest.Config, options client.Options, uncachedObjects ...client.Object) (client.Client, error)

Types

type KubeClient

type KubeClient struct {
	Cluster   cluster.Cluster
	Discovery *discovery.DiscoveryClient
}

func MakeKubeClient

func MakeKubeClient(config *genericclioptions.ConfigFlags, allNamespaces bool) (*KubeClient, error)

func MakeKubeClientFromCluster

func MakeKubeClientFromCluster(c cluster.Cluster) (*KubeClient, error)

func MakeKubeClientFromRestConfig

func MakeKubeClientFromRestConfig(cfg *rest.Config, namespace string) (*KubeClient, error)

func (*KubeClient) DetectGVK

func (k *KubeClient) DetectGVK(arg string) (*schema.GroupVersionKind, error)

func (*KubeClient) IsValidGVK

func (k *KubeClient) IsValidGVK(gvk *schema.GroupVersionKind) error

Jump to

Keyboard shortcuts

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