flags

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 15

Documentation

Index

Constants

View Source
const (
	// DefaultClusterUID is the uid to use for clusters resources created by an
	// L7 controller created without specifying the --cluster-uid flag.
	DefaultClusterUID = ""
	// DefaultNodePortRange is the list of ports or port ranges used by kubernetes for
	// allocating NodePort services.
	DefaultNodePortRange = "30000-32767"

	// DefaultLeaseDuration is a 15 second lease duration.
	DefaultLeaseDuration = 15 * time.Second
	// DefaultRenewDeadline is a 10 second renewal deadline.
	DefaultRenewDeadline = 10 * time.Second
	// DefaultRetryPeriod is a 2 second retry period.
	DefaultRetryPeriod = 2 * time.Second

	// DefaultResourceLock is the type of resource used for the lock object.
	DefaultResourceLock = resourcelock.ConfigMapsLeasesResourceLock

	// DefaultLockObjectNamespace is the namespace which owns the lock object.
	DefaultLockObjectNamespace string = "kube-system"

	// DefaultLockObjectName is the object name of the lock object.
	DefaultLockObjectName = "ingress-gce-lock"
)

Variables

View Source
var (
	// F are global flags for the controller.
	F = struct {
		APIServerHost                    string
		ASMConfigMapBasedConfigCMName    string
		ASMConfigMapBasedConfigNamespace string
		ClusterName                      string
		ConfigFilePath                   string
		DefaultSvc                       string
		DefaultSvcHealthCheckPath        string
		DefaultSvcPortName               string
		DeleteAllOnQuit                  bool
		GCEOperationPollInterval         time.Duration
		GCERateLimit                     RateLimitSpecs
		GCERateLimitScale                float64
		GKEClusterName                   string
		GKEClusterHash                   string
		GKEClusterType                   string
		HealthCheckPath                  string
		HealthzPort                      int
		InCluster                        bool
		IngressClass                     string
		KubeConfigFile                   string
		NegGCPeriod                      time.Duration
		NumNegGCWorkers                  int
		NodePortRanges                   PortRanges
		ResyncPeriod                     time.Duration
		L4NetLBProvisionDeadline         time.Duration
		NumL4Workers                     int
		NumL4NetLBWorkers                int
		NumIngressWorkers                int
		RunIngressController             bool
		RunL4Controller                  bool
		RunL4NetLBController             bool
		Version                          bool
		WatchNamespace                   string
		LeaderElection                   LeaderElectionConfiguration
		MetricsExportInterval            time.Duration
		NegMetricsExportInterval         time.Duration

		// Feature flags should be named Enablexxx.
		EnableASMConfigMapBasedConfig            bool
		EnableBackendConfigHealthCheck           bool
		EnableDeleteUnusedFrontends              bool
		EnableFrontendConfig                     bool
		EnableNonGCPMode                         bool
		EnableReadinessReflector                 bool
		EnableV2FrontendNamer                    bool
		FinalizerAdd                             bool // Should have been named Enablexxx.
		FinalizerRemove                          bool // Should have been named Enablexxx.
		EnablePSC                                bool
		EnableIngressGAFields                    bool
		EnableTrafficScaling                     bool
		EnableTransparentHealthChecks            bool
		EnableUpdateCustomHealthCheckDescription bool
		EnablePinhole                            bool
		EnableL4ILBDualStack                     bool
		EnableL4NetLBDualStack                   bool
		EnableMultipleIGs                        bool
		EnableServiceMetrics                     bool
		EnableNEGLabelPropagation                bool
		MaxIGSize                                int
		EnableDegradedMode                       bool
		EnableDualStackNEG                       bool
		EnableFirewallCR                         bool
		DisableFWEnforcement                     bool
	}{
		GCERateLimitScale: 1.0,
	}
)

Functions

func Register

func Register()

Register flags with the command line parser.

Types

type LeaderElectionConfiguration added in v1.2.2

type LeaderElectionConfiguration struct {
	config.LeaderElectionConfiguration

	// LockObjectNamespace defines the namespace of the lock object
	LockObjectNamespace string
	// LockObjectName defines the lock object name
	LockObjectName string
}

type PortRanges

type PortRanges struct {
	// contains filtered or unexported fields
}

func (*PortRanges) Set

func (c *PortRanges) Set(value string) error

Set supports a value of CSV or the flag repeated multiple times

func (*PortRanges) String

func (c *PortRanges) String() string

String is the method to format the flag's value, part of the flag.Value interface.

func (*PortRanges) Type added in v1.2.2

func (c *PortRanges) Type() string

func (*PortRanges) Values

func (c *PortRanges) Values() []string

Set supports a value of CSV or the flag repeated multiple times

type RateLimitSpecs

type RateLimitSpecs struct {
	// contains filtered or unexported fields
}

func (*RateLimitSpecs) Set

func (r *RateLimitSpecs) Set(value string) error

Set supports the flag being repeated multiple times. Part of the flag.Value interface.

func (*RateLimitSpecs) String

func (r *RateLimitSpecs) String() string

Part of the flag.Value interface.

func (*RateLimitSpecs) Type added in v1.2.2

func (r *RateLimitSpecs) Type() string

func (*RateLimitSpecs) Values

func (r *RateLimitSpecs) Values() []string

Jump to

Keyboard shortcuts

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