k8s

package
v0.0.0-...-91313ad Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(kubeConfig []byte) (client k8s.Client, err error)

NewClient builds new k8s client.

Types

type UnstructuredResources

type UnstructuredResources struct {
	NamespacedLists map[string][]unstructured.UnstructuredList
	// contains filtered or unexported fields
}

UnstructuredResources is a namespace-separated cache of unstructured k8s resources.

func NewUnstructuredResources

func NewUnstructuredResources(client k8s.Client) (ur *UnstructuredResources)

func (*UnstructuredResources) Gather

func (r *UnstructuredResources) Gather(namespace string, gvks []schema.GroupVersionKind) (err error)

Gather unstructured resources that match the provided GVK and namespace.

Jump to

Keyboard shortcuts

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