options

package
v0.0.0-...-d7985ca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	*flag.FlagSet
	// Vendor Neutral
	ServiceName          string
	DisableWebhook       bool
	WebhookPort          int
	MetricsPort          int
	HealthProbePort      int
	KubeClientQPS        int
	KubeClientBurst      int
	EnableProfiling      bool
	EnableLeaderElection bool
	MemoryLimit          int64
}

Options for running this binary

func New

func New() *Options

New creates an Options struct and registers CLI flags and environment variables to fill-in the Options struct fields

func (*Options) MustParse

func (o *Options) MustParse() *Options

MustParse reads the user passed flags, environment variables, and default values. Options are valided and panics if an error is returned

Jump to

Keyboard shortcuts

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