seed

package
v2.14.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 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 {
	*http.Server
	// contains filtered or unexported fields
}

func (*Server) NeedLeaderElection

func (s *Server) NeedLeaderElection() bool

func (*Server) Start

func (s *Server) Start(_ <-chan struct{}) error

Start implements sigs.k8s.io/controller-runtime/pkg/manager.Runnable

type WebhookOpts

type WebhookOpts struct {
	ListenAddress string
	CertFile      string
	KeyFile       string
}

func (*WebhookOpts) AddFlags

func (opts *WebhookOpts) AddFlags(fs *flag.FlagSet)

func (*WebhookOpts) Server

func (opts *WebhookOpts) Server(
	ctx context.Context,
	log *zap.SugaredLogger,
	namespace string,
	workerName string,
	seedsGetter provider.SeedsGetter,
	seedClientGetter provider.SeedClientGetter,
	migrationModeEnabled bool) (*Server, error)

Server returns a Server that validates AdmissionRequests for Seed CRs. When migrationModeEnabled is enabled, only creating new seeds is allowed, not changing or deleting existing.

Jump to

Keyboard shortcuts

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