k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package k8s contains kubernetes helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectWithConfig

func ConnectWithConfig(abspath string) (*kubernetes.Clientset, error)

ConnectWithConfig takes an absolute path to a kube config file which is used to connect to the Kubernetes API.

func ConnectWithinCluster

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

ConnectWithinCluster uses Kubernetes utility functions to locate the credentials within the cluster and connect to the API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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