kubeutils

package
v1.17.0-beta18 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GlooDeploymentName = "gloo"
	GlooServiceName    = "gloo"

	// The name of the port in the gloo control plane Kubernetes Service that serves xDS config.
	GlooXdsPortName = "grpc-xds"
)
View Source
const (
	K8sClientQpsEnv     = "K8S_CLIENT_QPS"
	K8sClientQpsDefault = 50 // 10x the k8s-recommended default; gloo gets busy writing status updates

	K8sClientBurstEnv     = "K8S_CLIENT_BURST"
	K8sClientBurstDefault = 100 // 10x the k8s-recommended default; gloo gets busy writing status updates
)

Variables

This section is empty.

Functions

func GetPodsForDeployment

func GetPodsForDeployment(
	ctx context.Context,
	restConfig *rest.Config,
	deploymentName string,
	deploymentNamespace string,
) ([]string, error)

GetPodsForDeployment gets all pods backing a deployment

func GetPodsForService

func GetPodsForService(
	ctx context.Context,
	restConfig *rest.Config,
	serviceName string,
	serviceNamespace string,
) ([]string, error)

GetPodsForService gets all pods backing a deployment

func GetRestConfigWithKubeContext

func GetRestConfigWithKubeContext(kubeContext string) (*rest.Config, error)

GetRestConfigWithKubeContext provides the rest.Config object for a given Kubernetes context This is a wrapper on the controller-runtime implementation, and allows overriding certain client properties via environment variables

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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