Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Version is used for support printing version
Version = "unknown"
)
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.