utils

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() (kubernetes.Interface, error)

GetClient returns a clientset from inside the cluster

func GetObjectMetaData

func GetObjectMetaData(obj interface{}) (objectMeta meta_v1.ObjectMeta)

GetObjectMetaData queries for k8s metadata on a given object

func GetRestConfig

func GetRestConfig() (*rest.Config, error)

GetRestConfig returns a valid rest client for connecting to Kubernetes

Types

type LogEntry

type LogEntry struct {
	Text     string
	Metadata map[string]string
	Err      error
}

Jump to

Keyboard shortcuts

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