server

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package server implements a Server object for running the admission controller as a webhook server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerCommand

func NewServerCommand() *cobra.Command

NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions

Types

type Config

type Config struct {
	SecureServing     *apiserver.SecureServingInfo
	InsecureServing   *apiserver.DeprecatedInsecureServingInfo
	KubeConfig        *restclient.Config
	PodSecurityConfig *admissionapi.PodSecurityConfiguration
}

Config holds the loaded options.Options used to set up the webhook server.

func LoadConfig

func LoadConfig(opts *options.Options) (*Config, error)

LoadConfig loads the Config from the Options.

type Server

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

func Setup

func Setup(c *Config) (*Server, error)

Setup creates an Admission object to handle the admission logic.

func (*Server) HandleValidate

func (s *Server) HandleValidate(w http.ResponseWriter, r *http.Request)

func (*Server) Start

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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