clusterconnect

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 7 Imported by: 0

README

Clusterconnect Package

Simple Package for connecting to a Kubernetes Cluster, because I am tired of copy-pasting the same lines over and over :)

Usage

ConnectToCluster() returns a Kubernetes Clientset. You can specify whether to use the local kubeconfig file or an in-cluster-config by passing the --local flag when running your program.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToCluster

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

ConnectToCluster connects to a Kubernetes cluster. It can connect either via a local kubeconfig file or from within a Pod itself It switches between the two by registering a --local flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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