options

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	*flags.Flags

	// CertManager are options specific to created cert-manager
	// CertificateRequests.
	CertManager OptionsCertManager

	// Controller are options specific to the controller.
	Controller OptionsController
}

Options are the CSI Approver flag options.

func New

func New() *Options

type OptionsCertManager

type OptionsCertManager struct {
	// TrustDomain is the Trust Domain the evaluator will enforce requests request
	// for.
	TrustDomain string

	// CertificateRequestDuration is the duration the evaluator will enforce
	// CertificateRequest request for.
	CertificateRequestDuration time.Duration

	// IssuerRef is the issuer reference that will be used to match on created
	// CertificateRequests.
	IssuerRef cmmeta.ObjectReference

	// Multi-tenancy is the flag to enable strict multi-tenancy support where
	// namespace name has to match with the domain name.
	MultiTenancy bool
}

OptionsCertManager are options specific to cert-manager and the evaluator.

type OptionsController

type OptionsController struct {
	// ReadyzAddress is the TCP address for exposing the HTTP readiness probe
	// which will be served on the HTTP path '/readyz'.
	ReadyzAddress string

	// MetricsAddress is the TCP address for exposing HTTP Prometheus metrics
	// which will be served on the HTTP path '/metrics'. The value "0" will
	// disable exposing metrics.
	MetricsAddress string

	// LeaderElectionNamespace is the namespace that the approver controller will
	// lease election in.
	LeaderElectionNamespace string
}

OptionsController are options specific to the Kubernetes controller.

Jump to

Keyboard shortcuts

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