Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Version of vebhook
Version = "unknown"
)
Functions ¶
func NewSideCarConfig ¶
func NewSideCarConfig(s *ServerRunOptions) *webhook.SideCarConfig
NewSideCarConfig initializes the config of side car container
Types ¶
type ServerRunOptions ¶
type ServerRunOptions struct {
// Address of webhook listening
Address string
// Port of webhook listening
Port int
TlsCA string
TlsCert string
TlsKey string
// ShowVersion prints version if true
ShowVersion bool
// HttpPort of side car
HttpPort int
// GRPC port of side car
GrpcPort int
// Image of side car
Image string
// CPU of side car
CPU string
//Memory of side car
Memory string
}
ServerRunOptions is the webhook options.
func NewServerRunOptions ¶
func NewServerRunOptions() *ServerRunOptions
NewServerRunOptions creates new run options
Click to show internal directories.
Click to hide internal directories.