server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(opts *WebhookServerOptions, stopCh <-chan struct{}) error

RunServer runs the webhook server with configuration according to opts

Types

type WebhookServerOptions

type WebhookServerOptions struct {
	SecureServingOptions  *genericserveroptions.SecureServingOptions
	ReleaseName           string
	HealthzServerBindPort int
}

WebhookServerOptions holds configuration for mutating/validating webhook server.

func NewWebhookServerOptions

func NewWebhookServerOptions() *WebhookServerOptions

NewWebhookServerOptions creates a new WebhookServerOptions with a default settings.

func (*WebhookServerOptions) AddFlags

func (s *WebhookServerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a WebhookServerOptions to the specified FlagSet.

func (*WebhookServerOptions) Validate

func (s *WebhookServerOptions) Validate() error

Validate checks all subOptions flags have been set and that they have not been set in a conflictory manner.

Jump to

Keyboard shortcuts

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