flags

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 41

Documentation

Overview

Package flags implements the manager options utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddManagerOptions added in v1.8.0

func AddManagerOptions(fs *pflag.FlagSet, options *ManagerOptions)

AddManagerOptions adds the manager options flags to the flag set.

func GetManagerOptions added in v1.8.0

func GetManagerOptions(options ManagerOptions) ([]func(config *tls.Config), *metricsserver.Options, error)

GetManagerOptions returns options which can be used to configure a Manager. This function should be used with the corresponding AddManagerOptions func.

Types

type ManagerOptions added in v1.8.0

type ManagerOptions struct {

	// TLSMinVersion is the field that stores the value of the --tls-min-version flag.
	// For further details, please see the description of the flag.
	TLSMinVersion string
	// TLSCipherSuites is the field that stores the value of the --tls-cipher-suites flag.
	// For further details, please see the description of the flag.
	TLSCipherSuites []string

	// MetricsBindAddr is the field that stores the value of the --metrics-bind-addr flag.
	// For further details, please see the description of the flag.
	//
	// Deprecated: This field will be removed in an upcoming release.
	MetricsBindAddr string
	// DiagnosticsAddress is the field that stores the value of the --diagnostics-address flag.
	// For further details, please see the description of the flag.
	DiagnosticsAddress string
	// InsecureDiagnostics is the field that stores the value of the --insecure-diagnostics flag.
	// For further details, please see the description of the flag.
	InsecureDiagnostics bool
}

ManagerOptions provides command line flags for manager options.

Jump to

Keyboard shortcuts

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