pod

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BareRegistry = "docker.io"

Variables

This section is empty.

Functions

func RegistryFromImageRef

func RegistryFromImageRef(imageReference string) (registry string, err error)

RegistryFromImageRef returns the registry (and port, if set) from the image reference, otherwise returns the default bare registry, "docker.io".

func ReplaceRegistryInImageRef

func ReplaceRegistryInImageRef(imageReference, replacementRegistry string) (imageRef string, err error)

ReplaceRegistryInImageRef returns the the image reference with the registry replaced.

Types

type ImagePathRewriter

type ImagePathRewriter struct {
	Client client.Client
	Log    logr.Logger
	// contains filtered or unexported fields
}

ImagePathRewriter implements webhook logic to mutate the image path of deploying pods.

func (*ImagePathRewriter) Handle

Handle the admission webhook for mutating the image path of deploying pods.

func (*ImagePathRewriter) InjectDecoder

func (ipr *ImagePathRewriter) InjectDecoder(d *admission.Decoder) error

A decoder will be automatically injected. InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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