options

package
v0.7.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 12 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 {

	// ReadyzPort if the port used to expose Prometheus metrics.
	ReadyzPort int
	// ReadyzPath if the HTTP path used to expose Prometheus metrics.
	ReadyzPath string

	// MetricsPort is the port for exposing Prometheus metrics on 0.0.0.0 on the
	// path '/metrics'.
	MetricsPort int

	// Logr is the shared base logger.
	Logr logr.Logger

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

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

	// Bundle are options specific to the Bundle controller.
	Bundle bundle.Options
	// contains filtered or unexported fields
}

Options is a struct to hold options for trust-manager

func New

func New() *Options

New constructs a new Options.

func (*Options) Complete

func (o *Options) Complete() error

Complete will populate the remaining Options from the CLI flags. Must be run before consuming Options.

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command) *Options

Prepare adds Options flags to the CLI command.

type Webhook

type Webhook struct {
	Host    string
	Port    int
	CertDir string
}

Webhook holds options specific to running the trust Webhook service.

Jump to

Keyboard shortcuts

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