options

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTOptions added in v1.16.0

type JWTOptions struct {
	Enabled            bool
	SigningKeyFilename string
	JWKSFilename       string
	Issuer             *string
	SigningAlgorithm   string
	KeyID              *string
	TTL                time.Duration
	// contains filtered or unexported fields
}

type OIDCOptions added in v1.16.0

type OIDCOptions struct {
	Enabled             bool
	ServerListenAddress string
	ServerListenPort    int
	TLSEnabled          bool     // Enable TLS for the OIDC HTTP server
	TLSCertFile         *string  // TLS certificate file for the OIDC HTTP server (required when OIDC HTTP server is enabled)
	TLSKeyFile          *string  // TLS key file for the OIDC HTTP server (required when OIDC HTTP server is enabled)
	AllowedHosts        []string // Domains that public endpoints can be accessed from (Optional)
	JWKSURI             *string  // Force the public JWKS URI to this value (Optional)
	PathPrefix          *string  // Path prefix for HTTP endpoints (Optional)
	Insecure            bool     // Allow HTTP insecure (Optional)
	// contains filtered or unexported fields
}

type Options

type Options struct {
	ConfigName            string
	Port                  int
	ListenAddress         string
	HealthzPort           int
	HealthzListenAddress  string
	IssuerCredentialsPath string
	TrustDomain           string
	Kubeconfig            string
	Logger                logger.Options
	Metrics               *metrics.FlagOptions
	Mode                  string

	X509 X509Options
	JWT  JWTOptions
	OIDC OIDCOptions
}

func New

func New(origArgs []string) *Options

func (*Options) Validate added in v1.15.0

func (o *Options) Validate() error

type X509Options added in v1.16.0

type X509Options struct {
	RootCAFilename     string
	IssuerCertFilename string
	IssuerKeyFilename  string
}

Jump to

Keyboard shortcuts

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