k8s

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(kubeconfig string) (*kubernetes.Clientset, error)

Types

type K8S

type K8S struct {
	Client *kubernetes.Clientset
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, kubeconfig string) (*K8S, error)

func (*K8S) ConfigMap

func (k *K8S) ConfigMap(ns, name string) (*v1.ConfigMap, error)

ConfigMap returns configmap by name and namespace.

func (*K8S) K3SUpgradePlan

func (k *K8S) K3SUpgradePlan(ns, name string) (map[string]interface{}, error)

func (*K8S) Nodes

func (k *K8S) Nodes() ([]v1.Node, error)

Jump to

Keyboard shortcuts

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