Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookPod ¶
func NewWebhookPod( ctx context.Context, webhookCtx *katalystbase.GenericContext, _ *generic.GenericConfiguration, _ *webhookconfig.GenericWebhookConfiguration, _ *webhookconfig.WebhooksConfiguration, ) (kubewebhook.Webhook, webhookconsts.GenericStartFunc, error)
NewWebhookPod makes the webhook pf Pod
Types ¶
type WebhookPod ¶
type WebhookPod struct {
// contains filtered or unexported fields
}
WebhookPod is the implementation of Kubernetes Webhook any implementation should at least implement the interface of mutating.Mutator of validating.Validator
func (*WebhookPod) Run ¶
func (wp *WebhookPod) Run() bool
type WebhookPodMutator ¶
type WebhookPodResourceMutator ¶
type WebhookPodResourceMutator struct {
// contains filtered or unexported fields
}
func NewWebhookPodResourceMutator ¶
func NewWebhookPodResourceMutator( ctx context.Context, vpaIndexer cache.Indexer, vpaLister autoscalelister.KatalystVerticalPodAutoscalerLister, workloadLister map[schema.GroupVersionKind]cache.GenericLister, ) *WebhookPodResourceMutator
NewWebhookPodResourceMutator will mutate pod resource according to vpa
type WebhookPodSPDReferenceMutator ¶
type WebhookPodSPDReferenceMutator struct {
// contains filtered or unexported fields
}
func NewWebhookPodSPDReferenceMutator ¶
func NewWebhookPodSPDReferenceMutator( ctx context.Context, spdIndexer cache.Indexer, spdLister workloadlister.ServiceProfileDescriptorLister, workloadLister map[schema.GroupVersionKind]cache.GenericLister, ) *WebhookPodSPDReferenceMutator
NewWebhookPodSPDReferenceMutator will maintain spd reference annotations for pod
Click to show internal directories.
Click to hide internal directories.