k8suite

package module
v0.0.0-...-02219de Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 6 Imported by: 0

README

k8s-utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfig

func BuildConfig(cfgPath, cfgContext string) (*rest.Config, error)

BuildConfig returns InClusterConfig or LocalConfig automatically.

func BuildConfigFromFlags

func BuildConfigFromFlags() (*rest.Config, error)

BuildConfigFromFlags checks envvar `IN_CLUSTER` or `KUBERNETES_SERVICE_HOST` and flags to create `*rest.Config`.

func NewClientset

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

NewClientset creates `*kubernetes.Clientset`

func NewClientsetOrDie

func NewClientsetOrDie() *kubernetes.Clientset

NewClientsetOrDie returns `*kubernetes.Clientset` and panic on error

Types

This section is empty.

Jump to

Keyboard shortcuts

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