client

package
v0.0.0-...-aa771b6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (kubernetes.Interface, error)

New tries to creates a client in cluster as first choice, if it failed, it tries it as kubectl does on client side.

func NewClient

func NewClient() (kubernetes.Interface, error)

NewClient creates a clientset to talk to apiserver

func NewInCluster

func NewInCluster() (kubernetes.Interface, error)

NewInCluster creates a clientset if it runs inside a cluster. It will get serviceaccount token to construct a clientset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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