k8s

package
v0.0.0-...-58e557b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupK8sHelper

func SetupK8sHelper(kubeConfigFilePath string)

Types

type Helper

type Helper struct {
	NodeName string
	Client   *k8sclient.ClientInfo

	PodEvent record.EventRecorder
	Mgr      manager.Manager
}
var (
	K8sHelper *Helper
)

func (*Helper) GetCurrentNodePods

func (k *Helper) GetCurrentNodePods() ([]*rpc.PodInfo, error)

GetCurrentNodePods return the list of pods running on the local nodes

func (*Helper) GetPodInfo

func (k *Helper) GetPodInfo(namespace, name string) (*rpc.PodInfo, error)

Jump to

Keyboard shortcuts

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