webhook

package
v0.0.0-...-76698d7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCacheKey

func GenCacheKey(kind, name, namespace string) string

Types

type ScaleMutatingHandler

type ScaleMutatingHandler struct {
	Client runtimeclient.Client

	// Decoder decodes objects
	Decoder *kubeadmission.Decoder

	// cache for the resource
	CacheResource *sync.Map

	Ctx context.Context
	// contains filtered or unexported fields
}

MutatingHandler handles Component

func NewScaleMutatingHandler

func NewScaleMutatingHandler() (h *ScaleMutatingHandler, err error)

func (*ScaleMutatingHandler) Close

func (h *ScaleMutatingHandler) Close()

func (*ScaleMutatingHandler) Handle

Handle handles admission requests.

func (*ScaleMutatingHandler) Sync

func (h *ScaleMutatingHandler) Sync()

type WebhookResourceCacheItem

type WebhookResourceCacheItem struct {
	Name                 string
	SimpleAutoScalerName string
	Resources            autoscalev1alpha1.SimpleAutoScalerResources
}

resource cache is use to filter requests

func (*WebhookResourceCacheItem) String

func (w *WebhookResourceCacheItem) String() string

Jump to

Keyboard shortcuts

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