util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableArpRequest

func DisableArpRequest(sysctl utilsysctl.Interface) error

func EnableArpRequest

func EnableArpRequest(sysctl utilsysctl.Interface) error

func GetNodeIPOrName

func GetNodeIPOrName(kubeClient clientset.Interface, name string, useInternalIP bool) string

func GetRestConfig

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

Types

type Config

type Config struct {
	Client clientset.Interface

	ElectionID string
}

type PodInfo

type PodInfo struct {
	Name      string
	Namespace string
	NodeIP    string
	Labels    map[string]string
}

func GetPodDetails

func GetPodDetails(kubeClient clientset.Interface) (*PodInfo, error)

Jump to

Keyboard shortcuts

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