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 ¶
SidecarSetCreateHandler handles SidecarSet
func (*SidecarSetCreateHandler) Handle ¶
func (h *SidecarSetCreateHandler) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles admission requests.
func (*SidecarSetCreateHandler) InjectDecoder ¶
func (h *SidecarSetCreateHandler) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder into the SidecarSetCreateHandler
Click to show internal directories.
Click to hide internal directories.