mutating

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"mutate-apps-kruise-io-v1alpha1-sidecarset": &SidecarSetCreateHandler{},
	}
)

Functions

func SidecarSetHash

func SidecarSetHash(sidecarSet *appsv1alpha1.SidecarSet) (string, error)

SidecarSetHash returns a hash of the SidecarSet. The Containers are taken into account.

func SidecarSetHashWithoutImage

func SidecarSetHashWithoutImage(sidecarSet *appsv1alpha1.SidecarSet) (string, error)

SidecarSetHashWithoutImage calculates sidecars's container hash without its image we use this to determine if the sidecar reconcile needs to update a pod image

Types

type SidecarSetCreateHandler

type SidecarSetCreateHandler struct {

	// Decoder decodes objects
	Decoder *admission.Decoder
}

SidecarSetCreateHandler handles SidecarSet

func (*SidecarSetCreateHandler) Handle

Handle handles admission requests.

func (*SidecarSetCreateHandler) InjectDecoder

func (h *SidecarSetCreateHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the SidecarSetCreateHandler

Jump to

Keyboard shortcuts

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