customtypes

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodSpec

type PodSpec struct {
	// This overrides the Containers field in the v1.PodSpec, therefore making sure that callers
	// only access the Containers array through utility functions in this package.
	Containers struct{}
	v1.PodSpec
}

PodSpec is a description of a pod. This is a wrapper around v1.PodSpec with custom utility methods

func (*PodSpec) AllContainers

func (p *PodSpec) AllContainers() []v1.Container

AllContainers returns a list of all containers in the Pod, including Init, Regular, and Ephemeral

func (*PodSpec) EphemeralContainers added in v0.6.1

func (p *PodSpec) EphemeralContainers() []v1.EphemeralContainer

EphemeralContainers returns a list of all ephemeral containers in the Pod

func (*PodSpec) InitContainers

func (p *PodSpec) InitContainers() []v1.Container

InitContainers returns a list of all init containers in the Pod

func (*PodSpec) NonInitContainers

func (p *PodSpec) NonInitContainers() []v1.Container

NonInitContainers returns a list of all regular (non-init) containers in the Pod

Jump to

Keyboard shortcuts

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