startup_kube

package
v2.10.49 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObserveConfigMap

func ObserveConfigMap(ctx context.Context, cs *kubernetes.Clientset, namespace, name string, callback ConfigMapUpdate) error

ObserveConfigMap observes a specific ConfigMap. If the ConfigMap already exists, the callback is invoked immediately. Otherwise, the callback is invoked when the ConfigMap is created. The callback is invoked with nil when the ConfigMap is deleted.

ObserveConfigMap will block forever, or until an error occurs.

func WriteConfigMap

func WriteConfigMap(ctx context.Context, cs *kubernetes.Clientset, writer, namespace, name string, data ConfigMapValues) error

Types

type ConfigMapUpdate

type ConfigMapUpdate func(ConfigMapValues) error

type ConfigMapValues

type ConfigMapValues map[string]any

ConfigMapValues contain strings and []byte values.

func FetchConfigMapValues

func FetchConfigMapValues(ctx context.Context, cs *kubernetes.Clientset, namespace, name string) (ConfigMapValues, error)

FetchConfigMapValues fetches the current state of a configmap

type KubernetesOptions

type KubernetesOptions struct {
	KubeConfig  string `long:"kube-config" env:"KUBE_CONFIG" description:"Filename of the kubeconfig to use. Uses in cluster config if not specified"`
	KubeContext string `long:"kube-context" env:"KUBE_CONTEXT" description:"Select the kubernetes context to use from the config"`
	// contains filtered or unexported fields
}

func (*KubernetesOptions) Client

func (opts *KubernetesOptions) Client() *kubernetes.Clientset

func (*KubernetesOptions) Initialize added in v2.7.15

func (opts *KubernetesOptions) Initialize()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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