flags

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 29

Documentation

Overview

Package flags implements the webhook server TLS options utilities.

Package flags implements the webhook server TLS options utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDiagnosticsOptions added in v1.6.0

func AddDiagnosticsOptions(fs *pflag.FlagSet, options *DiagnosticsOptions)

AddDiagnosticsOptions adds the diagnostics flags to the flag set.

func AddTLSOptions

func AddTLSOptions(fs *pflag.FlagSet, options *TLSOptions)

AddTLSOptions adds the webhook server TLS configuration flags to the flag set.

func GetDiagnosticsOptions added in v1.6.0

func GetDiagnosticsOptions(options DiagnosticsOptions) metricsserver.Options

GetDiagnosticsOptions returns metrics options which can be used to configure a Manager.

func GetTLSOptionOverrideFuncs

func GetTLSOptionOverrideFuncs(options TLSOptions) ([]func(*tls.Config), error)

GetTLSOptionOverrideFuncs returns a list of TLS configuration overrides to be used by the webhook server.

Types

type DiagnosticsOptions added in v1.6.0

type DiagnosticsOptions struct {
	// MetricsBindAddr
	//
	// Deprecated: This field will be removed in an upcoming release.
	MetricsBindAddr     string
	DiagnosticsAddress  string
	InsecureDiagnostics bool
}

DiagnosticsOptions has the options to configure diagnostics.

type TLSOptions

type TLSOptions struct {
	TLSMinVersion   string
	TLSCipherSuites []string
}

TLSOptions has the options to configure the TLS settings for a webhook server.

Jump to

Keyboard shortcuts

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