options

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

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

ApplyTo fills up config with options

func (*GenericWebhookOptions) Config

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.

func (*Options) ApplyTo

func (o *Options) ApplyTo(c *config.Configuration) error

ApplyTo fills up config with options

func (*Options) Config

func (o *Options) Config() (*config.Configuration, error)

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.

func (*PodOptions) ApplyTo

func (o *PodOptions) ApplyTo(c *webhook.PodConfig) error

ApplyTo fills up config with options

func (*PodOptions) Config

func (o *PodOptions) Config() (*webhook.PodConfig, error)

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.

func (*VPAOptions) ApplyTo

func (o *VPAOptions) ApplyTo(c *webhook.VPAConfig) error

ApplyTo fills up config with options

func (*VPAOptions) Config

func (o *VPAOptions) Config() (*webhook.VPAConfig, error)

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

ApplyTo fills up config with options

func (*WebhookOptions) Config

Jump to

Keyboard shortcuts

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