utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAge added in v0.3.0

func FormatAge(t metav1.Time) string

func GetKubeconfigPath added in v0.3.1

func GetKubeconfigPath() string

func NewClientset

func NewClientset(kubeconfig, context string) (*kubernetes.Clientset, error)

NewClientset creates a new kubernetes clientset

func NewDiscoveryClient added in v0.3.0

func NewDiscoveryClient(kubeconfig, context string) (*discovery.DiscoveryClient, error)

func NewDynamicClient added in v0.3.0

func NewDynamicClient(kubeconfig, context string) (*dynamic.DynamicClient, error)

func SelectItem added in v0.2.0

func SelectItem(items []core.DuplicableObject, selectMessage string) (core.DuplicableObject, error)

Types

type KubeOptions

type KubeOptions struct {
	Kubeconfig  string
	Kubecontext string
	Namespace   string
}

Jump to

Keyboard shortcuts

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