kube

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultResource = "default"
)

Variables

View Source
var ResourceMap = map[string]runtime.Object{
	"pods":    &v1.Pod{},
	"default": nil,
}

Functions

func GetClient

func GetClient() (*kubernetes.Clientset, error)

gets the client for k8s, if ~/.kube/config exists so get that config else incluster config

func MapToRuntimeObject

func MapToRuntimeObject(resourceType string) runtime.Object

MapToRuntimeObject maps the resource type string to the actual resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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