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 ¶
RegisterWebhook registers the webhook with the Kubernetes API server
func (*Service) Start ¶
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.
Click to show internal directories.
Click to hide internal directories.