kubeinject

package
v0.0.0-...-a142011 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstPod

func GetFirstPod(client v1.CoreV1Interface, namespace string, selector string) (*corev1.Pod, error)

GetFirstPod returns a pod matching the namespace and label selector and the number of all pods that match the label selector. This is forked from polymorphichelpers.GetFirstPod to not watch and instead return an error if no pods are found

func GetValuesFromConfigMap

func GetValuesFromConfigMap(ctx cli.Context, revision string) (string, error)

grabs the raw values from the ConfigMap. These are encoded as JSON.

func InjectCommand

func InjectCommand(cliContext cli.Context) *cobra.Command

Types

type ExternalInjector

type ExternalInjector struct {
	// contains filtered or unexported fields
}

func (ExternalInjector) Inject

func (e ExternalInjector) Inject(pod *corev1.Pod, deploymentNS string) ([]byte, error)

Jump to

Keyboard shortcuts

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