utils

package
v0.0.0-...-b1a8189 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MergePatchType is patch type
	MergePatchType = "application/merge-patch+json"
	// ResourceTypeDevices is plural of device resource in apiserver
	ResourceTypeDevices = "devices"
)

Variables

View Source
var KubeBurst = 10
View Source
var KubeContentType = "application/vnd.kubernetes.protobuf"
View Source
var KubeMaster = "http://127.0.0.1:8080"

replace this with the K8s Master IP

View Source
var KubeQPS = float32(5.000000)
View Source
var Kubeconfig = ""

Functions

func KubeConfig

func KubeConfig() (conf *rest.Config, err error)

KubeConfig from flags

func NewCRDClient

func NewCRDClient(cfg *rest.Config) (*rest.RESTClient, error)

NewCRDClient is used to create a restClient for crd

Types

This section is empty.

Jump to

Keyboard shortcuts

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