k8sutil

package
v0.7.2 Latest Latest
Warning

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

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

Documentation

Overview

The package k8sutil contains some helper code which simplifies interaction with a Kubernetes cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesVersion

func GetKubernetesVersion(cfg *rest.Config) (*version.Version, error)

GetKubernetesVersion returns kubernetes server version

func GetNamespace

func GetNamespace() string

GetNamespace returns the namespace of the operator pod defaults to "kube-system"

func NewInClusterClient

func NewInClusterClient() (kubernetes.Interface, error)

NewInClusterClient connects code that runs inside a Kubernetes pod to the API server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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