Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericWebhookOptions ¶
type GenericWebhookOptions struct { Webhooks []string LabelSelector string ServerPort string DynamicGVResources []string SecureServing *apiserveroptions.SecureServingOptions }
GenericWebhookOptions holds the configurations for webhook based configurations.
func NewGenericWebhookOptions ¶
func NewGenericWebhookOptions() *GenericWebhookOptions
NewGenericWebhookOptions creates a new Options with a default config.
func (*GenericWebhookOptions) AddFlags ¶
func (o *GenericWebhookOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
func (*GenericWebhookOptions) ApplyTo ¶
func (o *GenericWebhookOptions) ApplyTo(c *webhookconfig.GenericWebhookConfiguration) error
ApplyTo fills up config with options
func (*GenericWebhookOptions) Config ¶
func (o *GenericWebhookOptions) Config() (*webhookconfig.GenericWebhookConfiguration, error)
type Options ¶
type Options struct { *options.GenericOptions // contains filtered or unexported fields }
Options holds the configurations for collector agent.
func NewOptions ¶
func NewOptions() *Options
NewOptions creates a new Options with a default config.
func (*Options) AddFlags ¶
func (o *Options) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
type PodOptions ¶
type PodOptions struct{}
PodOptions holds the configurations for Pod webhook.
func NewPodOptions ¶
func NewPodOptions() *PodOptions
NewPodOptions creates a new Options with a default config.
func (*PodOptions) AddFlags ¶
func (o *PodOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
type VPAOptions ¶
type VPAOptions struct{}
VPAOptions holds the configurations for VPA webhook.
func NewVPAOptions ¶
func NewVPAOptions() *VPAOptions
NewVPAOptions creates a new Options with a default config.
func (*VPAOptions) AddFlags ¶
func (o *VPAOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
type WebhookOptions ¶
type WebhookOptions struct { *VPAOptions *PodOptions }
func NewWebhooksOptions ¶
func NewWebhooksOptions() *WebhookOptions
func (*WebhookOptions) AddFlags ¶
func (o *WebhookOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*WebhookOptions) ApplyTo ¶
func (o *WebhookOptions) ApplyTo(c *webhookconfig.WebhooksConfiguration) error
ApplyTo fills up config with options
func (*WebhookOptions) Config ¶
func (o *WebhookOptions) Config() (*webhookconfig.WebhooksConfiguration, error)