options

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 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 Options

type Options struct {

	// 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 to lease the controller replica
	// leadership election.
	LeaderElectionNamespace string

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

	// RestConfig is the shared base rest config to connect to the Kubernetes
	// API.
	RestConfig *rest.Config

	// Webhook are options specific to the Kubernetes Webhook.
	Webhook

	// Logr is the shared base logger.
	Logr logr.Logger
	// contains filtered or unexported fields
}

Options are the main options for the approver-policy. Populated via processing command line flags.

func New

func New() *Options

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command, approvers ...approver.Interface) *Options

type Webhook

type Webhook struct {
	// Host is the host that the Webhook will be served on.
	Host string

	// Port is the TCP port that the Webhook will be served on.
	Port int

	// ServiceName is the service that exposes the Webhook server.
	ServiceName string

	// CASecretNamespace is the namespace that the
	// cert-manager-approver-policy-tls Secret is stored.
	CASecretNamespace string
}

Webhook holds options specific to running the approver-policy Webhook service.

Jump to

Keyboard shortcuts

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