server

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(client client.Client, certificateOpts certificate.Options, serverOpts ...ServerModifier) (*Server, error)

Add creates a new Conditions Mutating Webhook and adds it to the Manager. The Manager will set fields on the Webhook and Start it when the Manager is Started.

func (*Server) Add

func (s *Server) Add(mgr manager.Manager) error

func (*Server) InjectFunc

func (s *Server) InjectFunc(f inject.Func) error

func (*Server) NeedLeaderElection

func (s *Server) NeedLeaderElection() bool

func (*Server) Start

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

func (*Server) UpdateOpts

func (s *Server) UpdateOpts(serverOpts ...ServerModifier)

updates Server parameters using ServerModifier functions. Once the manager is started these parameters cannot be updated

type ServerModifier

type ServerModifier func(w *webhook.Server)

func WithCertDir

func WithCertDir(certDir string) ServerModifier

func WithHook

func WithHook(path string, hook *webhook.Admission) ServerModifier

func WithPort

func WithPort(port int) ServerModifier

Jump to

Keyboard shortcuts

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