Documentation ¶
Index ¶
Constants ¶
View Source
const BareRegistry = "docker.io"
Variables ¶
This section is empty.
Functions ¶
func RegistryFromImageRef ¶
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.
Click to show internal directories.
Click to hide internal directories.