util

package
v0.0.0-...-b39e775 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const UnknownOSMessage = "Unknown OS"

Variables

This section is empty.

Functions

func CheckEnvironmentVariables

func CheckEnvironmentVariables() error

func RunCommand

func RunCommand(cmd *exec.Cmd, message string) error

Types

type KubeClientResources

type KubeClientResources struct {
	Client        kubernetes.Interface
	DynamicClient dynamic.Interface // used to find owning pod-controller
	RESTMapper    meta.RESTMapper   // used with dynamicClient
}

KubeClientResources bundles together Kubernetes clients and related resources.

func CreateKubeClientResources

func CreateKubeClientResources() KubeClientResources

CreateKubeClientResources returns a KubeClientResources type, trying first in-cluster, then local, KubeConfig.

Jump to

Keyboard shortcuts

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