ranhelper

package
v0.0.0-...-195d9e3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesContainerExistInPod

func DoesContainerExistInPod(pod *pod.Builder, containerName string) bool

DoesContainerExistInPod checks if a given container exists in a given pod.

func ExecLocalCommand

func ExecLocalCommand(timeout time.Duration, command string, args ...string) (string, error)

ExecLocalCommand runs the provided command with the provided args locally, cancelling execution if it exceeds timeout.

func GetPodNameWithLabel

func GetPodNameWithLabel(client *clients.Settings, podNamespace, podLabelSelector string) (string, error)

GetPodNameWithLabel returns a pod name matching pod label selector in a given namespace.

func UnmarshalRaw

func UnmarshalRaw[T any](raw []byte) (*T, error)

UnmarshalRaw converts raw bytes for a K8s CR into the actual type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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