clustername

package
v0.0.0-...-dca2ff9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderCatalog map[string]Provider

ProviderCatalog holds all the various kinds of clustername providers

Functions

func GetClusterName

func GetClusterName() string

GetClusterName returns a k8s cluster name if it exists, either directly specified or autodiscovered

func ResetClusterName

func ResetClusterName()

ResetClusterName resets the clustername, which allows it to be detected again. Used for tests

Types

type Provider

type Provider func() (string, error)

Provider is a generic function to grab the clustername and return it

Jump to

Keyboard shortcuts

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