kubernetes

package
v0.0.0-...-42e9bf4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoogleAuthPlugin = "google_watcher" // so that this is different than "gcp" that's already in client-go tree.
)

Variables

This section is empty.

Functions

func HasManagedByConsoleLabel

func HasManagedByConsoleLabel(obj LabeledObject) bool

func IsManagedByConsoleLabelSelector

func IsManagedByConsoleLabelSelector() string

func NewClientSets

func NewClientSets(clusterConfig ClusterConfigMap) (map[string]kubernetes.Interface, error)

func NewScheme

func NewScheme() (*runtime.Scheme, error)

func SetManagedByConsoleLabel

func SetManagedByConsoleLabel(obj LabeledObject)

func WithCommonAnnotations

func WithCommonAnnotations(mp map[string]string, user string) map[string]string

Types

type ClusterConfigMap

type ClusterConfigMap map[string]*rest.Config

func CreateClusterConfigMap

func CreateClusterConfigMap(tenant string, clusters []string, staticClusters []StaticCluster) (ClusterConfigMap, error)

type LabeledObject

type LabeledObject interface {
	GetLabels() map[string]string
	SetLabels(map[string]string)
}

type StaticCluster

type StaticCluster struct {
	Name  string
	Host  string
	Token string
}

func (*StaticCluster) EnvDecode

func (c *StaticCluster) EnvDecode(value string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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