adapter

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutableContainerFromK8sContainer

func ExecutableContainerFromK8sContainer(c *v1.Container) *types.ExecutableContainer

ExecutableContainerFromK8sContainer creates an instance of an operableContainer from a v1.Container reference. This object will be passed around to accept transforms, and will eventually overwrite fields from the creating v1.Container in the manifest-under-transformation's pod spec.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(c *v1.Container) *Adapter

func (*Adapter) Apply

func (a *Adapter) Apply()

Apply takes the relevant fields from the operable container and applies them to the referenced v1.Container from the manifest's pod spec

func (*Adapter) GetContainer

func (a *Adapter) GetContainer() *types.ExecutableContainer

Jump to

Keyboard shortcuts

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