Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoscaleRequest ¶
type AutoscaleRequest struct { // UID is used for tracing the request and response. UID types.UID `json:"uid"` // Name is the name of the workload(Squad, Statefulset...) being scaled Name string `json:"name"` // Namespace is the workload namespace Namespace string `json:"namespace"` // Parameters are the parameter that required by webhook Parameters map[string]string `json:"parameters"` // CurrentReplicas is the current replicas CurrentReplicas int32 `json:"currentReplicas"` }
AutoscaleRequest defines the request to webhook autoscaler endpoint
type AutoscaleResponse ¶
type AutoscaleResponse struct { // UID is used for tracing the request and response. // It should be same as it in the request. UID types.UID `json:"uid"` // Set to false if should not do scaling Scale bool `json:"scale"` // Replicas is targeted replica count from the webhookServer Replicas int32 `json:"replicas"` }
AutoscaleResponse defines the response of webhook server
type AutoscaleReview ¶
type AutoscaleReview struct { Request *AutoscaleRequest `json:"request"` Response *AutoscaleResponse `json:"response"` }
AutoscaleReview is passed to the webhook with a populated Request value, and then returned with a populated Response.
Click to show internal directories.
Click to hide internal directories.