kube

package
v1.8.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsKind

func ContainsKind(list []string, kind string) bool

func ConvertToUnstructured

func ConvertToUnstructured(obj interface{}) (*unstructured.Unstructured, error)

func FetchCert added in v1.8.0

func FetchCert(
	ctx context.Context,
	certs string,
	kubeClient kubernetes.Interface,
) (credentials.TransportCredentials, error)

func GetGroupFromGVK added in v1.7.4

func GetGroupFromGVK(str string) (group string)

GetGroupFromGVK - get group GVK

func GetKindFromGVK

func GetKindFromGVK(str string) (apiVersion string, kind string)

GetKindFromGVK - get kind and APIVersion from GVK

func GetObjectWithTombstone

func GetObjectWithTombstone(obj interface{}) interface{}

func LabelSelectorContainsWildcard

func LabelSelectorContainsWildcard(v *metav1.LabelSelector) bool

func NewUnstructured

func NewUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured

func NewUnstructuredWithSpec

func NewUnstructuredWithSpec(apiVersion, kind, namespace, name string, spec map[string]interface{}) *unstructured.Unstructured

func SkipSubResources

func SkipSubResources(kind string) bool

SkipSubResources skip list of resources which don't have an API group.

func SplitSubresource

func SplitSubresource(s string) (kind string, subresource string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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