Documentation ¶
Index ¶
- func DoesContainerExistInPod(pod *pod.Builder, containerName string) bool
- func ExecLocalCommand(timeout time.Duration, command string, args ...string) (string, error)
- func GetPodNameWithLabel(client *clients.Settings, podNamespace, podLabelSelector string) (string, error)
- func UnmarshalRaw[T any](raw []byte) (*T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoesContainerExistInPod ¶
DoesContainerExistInPod checks if a given container exists in a given pod.
func ExecLocalCommand ¶
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 ¶
UnmarshalRaw converts raw bytes for a K8s CR into the actual type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.