app

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is used for support printing version
	Version = "unknown"
)

Functions

func Run

func Run(s *ServerRunOptions) error

Run the server according to options

Types

type ServerRunOptions

type ServerRunOptions struct {
	// webhook listen address
	Address string
	// listen port
	Port int
	// ca of tls
	TLSCA string
	// cert of tls
	TLSCert string
	// key of tls
	TLSKey string
	// kubeconfig file path if running out of cluster
	Kubeconfig string
	// url of master
	MasterURL string
	// run in the k8s
	InCluster bool
	// ignoreSelectorKeys represents those nodeSelector keys should not be converted
	// and it would affect the scheduling in then upper cluster
	IgnoreSelectorKeys string
	// ShowVersion is used for version
	ShowVersion bool
}

ServerRunOptions defines the options of webhook server

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions returns the run options

func (*ServerRunOptions) Validate

func (s *ServerRunOptions) Validate() error

Validate is used for validate address

Jump to

Keyboard shortcuts

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