options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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 is the TCP port used to expose the readiness probe on 0.0.0.0
	// on the path `/readyz`.
	ReadyzPort int

	// MetricsPort is the TCP 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

	// DaprNamespace is the namespace where Dapr is installed.
	DaprNamespace string

	// TrustBundleCertificateName is the name of the cert-manager Certificate
	// which signs and manages the dapr trust bundle.
	TrustBundleCertificateName string

	// WebhookCertificateName is the name of the cert-manager Certificate
	// which signs and manages the dapr webhook certificate.
	WebhookCertificateName string

	// SidecarInjectorCertificateName is the name of the cert-manager Certificate
	// which signs and manages the dapr sidecar injector certificate.
	SidecarInjectorCertificateName string

	// TrustAnchorFilePath is the name of the file which contains the trust
	// anchor for all 3 root CAs.
	// If empty, the trust anchor will be sourced from the cert-manager
	// Certificate.
	TrustAnchorFilePath string
	// contains filtered or unexported fields
}

Options is a struct to hold options for dapr-cert-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.

Jump to

Keyboard shortcuts

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