k8sObjectsUtil

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ExtractAllDockerImages added in v0.0.17

func ExtractAllDockerImages(manifests []unstructured.Unstructured) ([]string, error)

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 ExtractImageFromManifestYaml added in v0.0.17

func ExtractImageFromManifestYaml(manifestYaml string) []string

func ExtractImages added in v0.0.17

func ExtractImages(obj unstructured.Unstructured) []string

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