webhook

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a webhook that handles pod mutations for KubeSolo

func NewService

func NewService(nodeName, loadBalancerIP, pkiPath, adminKubeconfig string, loadBalancer bool, port int) *Service

NewService creates a new webhook server

func (*Service) RegisterWebhook

func (w *Service) RegisterWebhook() error

RegisterWebhook registers the webhook with the Kubernetes API server

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Start starts the webhook server.

The port is bound here rather than in the serving goroutine, so that a port already in use fails the start. The webhook fails open: were it simply missing, the API server would admit every pod without a node — KubeSolo runs no scheduler — and the whole cluster would sit Pending with nothing saying why.

Jump to

Keyboard shortcuts

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