Help us shape the future of Go! Take the 2026 Go Developer Survey

k8sObjectsUtil

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

View Source
const EphemeralContainerStartingShellScriptFileName = "./tmp/%s-devtron.sh"

Variables

This section is empty.

Functions

func ExtractEphemeralContainers added in v0.0.8

func ExtractEphemeralContainers(pods []corev1.Pod) map[string][]*EphemeralContainerData

ExtractEphemeralContainers will only return map of pod_name vs running ephemeral_containers list of this pod. Note: pod may contain other ephemeral containers which are not in running state

func HideValuesIfSecretForManifestStringInput

func HideValuesIfSecretForManifestStringInput(manifest string, kind string, group string) (string, error)

func HideValuesIfSecretForWholeYamlInput

func HideValuesIfSecretForWholeYamlInput(wholeYamlFileContent string) (string, error)

func IsExternalEphemeralContainer added in v0.0.8

func IsExternalEphemeralContainer(cmds []string, name string) bool

func IsPod added in v0.0.8

func IsPod(kind string, group string) bool

Types

type EphemeralContainerData added in v0.0.8

type EphemeralContainerData struct {
	Name string `json:"name"`
	// IsExternal flag indicates that this ephemeral container is not managed by devtron.(neither created nor can be killed by devtron)
	IsExternal bool `json:"isExternal"`
}

Jump to

Keyboard shortcuts

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