clusterext

package
v0.0.0-...-e40a182 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	ClusterExt map[string]map[string]string
	K8Envs     []string
}

Extension is an object that inserts cluster entries into the labels of objects it also supports filtering clusters by labels

func EmptyExtension

func EmptyExtension(clusters []string) Extension

EmptyExtension returns an Extension object that works as if no extensions are set

func (Extension) FilterContexts

func (e Extension) FilterContexts(contexts []string, l filter.LabelMatch) []string

FilterContexts further filters contexts

func (Extension) GetFilteredContexts

func (e Extension) GetFilteredContexts(l filter.LabelMatch) []string

GetFilteredContexts returns all the contexts that may match the label

func (*Extension) GetK8sEnv

func (e *Extension) GetK8sEnv()

GetK8sEnv retrieves all unique K8s environments from an Extension assuming that the ClusterExt is set

func (Extension) Transform

func (e Extension) Transform(i interface{})

Transform inserts any labels from the cluster

Jump to

Keyboard shortcuts

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