k8s

package
v2.0.0-...-2d05721 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubernetesClientset

func GetKubernetesClientset(configCallback Config, namespace string) (*kubernetes.Clientset, error)

func GetSecretsClient

func GetSecretsClient(configCallback Config, namespace string) (v1.SecretInterface, error)

getSecretsClient returns a Kubernetes Secrets client for the given namespace; namespace = "" for all namespaces.

Types

type Config

type Config func(namespace string) (*rest.Config, error)

Config is a callback that returns a Kubernetes Client API config for the given namespace; namespace = "" for all namespaces. see https://github.com/kubernetes/client-go/tree/v0.23.5/examples

Jump to

Keyboard shortcuts

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