podtemplate

package
v0.0.0-...-9b4d37b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerFromPod

func ContainerFromPod(pod *corev1.Pod) corev1.Container

ContainerFromPod will return a corev1.Container that is based on the first configured container in the given pod, which can be used as a template for to be created containers. If no containers are present in the pod, it will return an empty corev1.Container object instead.

func PodFromFile

func PodFromFile(file string) (*corev1.Pod, error)

PodFromFile will read a given file with pod definition and returns a corev1.Pod accordingly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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