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.
Click to show internal directories.
Click to hide internal directories.