Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfig ¶
BuildConfig returns InClusterConfig or LocalConfig automatically.
func BuildConfigFromFlags ¶
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.
Click to show internal directories.
Click to hide internal directories.