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: 0

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