cmd

package
v0.0.0-...-0c92d4c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0, BSD-3-Clause, ISC, + 2 more Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "cert-broker"

AppName holds the name of the application.

Variables

This section is empty.

Functions

func NewCertBroker

func NewCertBroker(ctx context.Context, out, errOut io.Writer) *cobra.Command

NewCertBroker returns a new instance to run the Cert-Broker.

Types

type CertBroker

type CertBroker struct {
	ControllerOptions *Options
}

CertBroker is used to configure and start the controller.

type Options

type Options struct {
	TargetClusterKubeconf  string
	ControlClusterKubeconf string
	ResourceNamespace      string
	ClusterIssuer          string
	AcmeChallengeType      string
	DomainToDNSProvider    map[string]string
	UpdateControlIngress   bool
	LeaderElection         bool
	IngressWorkerCount     uint
	SecretWorkerCount      uint
	CleanupWorkerCount     uint
	EventWorkerCount       uint
	SyncInterval           time.Duration
}

Options represent configuration settings for a running instance of Cert-Broker.

func NewControllerOptions

func NewControllerOptions(fs *pflag.FlagSet) *Options

NewControllerOptions adds configured flags and returns a pointer to a newly created Options struct.

Jump to

Keyboard shortcuts

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