kwir

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodRewriter

type PodRewriter struct {
	Client client.Client
	// contains filtered or unexported fields
}

PodRewriter rewrites Pod images based on config rules

func (*PodRewriter) Handle

Handle is a kube admission webhook handler that rewrite Pod containers images based on its own config rules

func (*PodRewriter) InjectDecoder

func (a *PodRewriter) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

func (*PodRewriter) LoadConfig

func (a *PodRewriter) LoadConfig(cfgFile string) error

LoadConfig initialize kwir PodRewriter configuration from a given yaml file

Jump to

Keyboard shortcuts

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