cmd

package
v0.0.0-...-8340aad Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInitializedSecretStorage

func CreateInitializedSecretStorage(ctx context.Context, client client.Client, reader client.Reader, args *CommonCliArgs) (secretstorage.SecretStorage, error)

Types

type CommonCliArgs

type CommonCliArgs struct {
	InstanceId        string           `` /* 167-byte string literal not displayed */
	MetricsAddr       string           `arg:"--metrics-bind-address, env" default:"127.0.0.1:8080" help:"The address the metric endpoint binds to."`
	ProbeAddr         string           `arg:"--health-probe-bind-address, env" default:":8081" help:"The address the probe endpoint binds to."`
	ConfigFile        string           `arg:"--config-file, env" default:"/etc/spi/config.yaml" help:"The location of the configuration file."`
	AllowInsecureURLs bool             `` /* 152-byte string literal not displayed */
	TokenStorage      TokenStorageType `` /* 127-byte string literal not displayed */
	PprofBindAddress  string           `` /* 144-byte string literal not displayed */
	StorageConfigJSON string           `arg:"--storage-config-json, env" help:"JSON with ESO ClusterSecretStore provider's configuration. Example: '{\"fake\":{}}'"`
	DisableHTTP2      bool             `arg:"--disable-http2, env" default:"true" help:"whether to support the HTTP/2 protocol in the webhook."`
	vaultcli.VaultCliArgs
	awscli.AWSCliArgs
}

CommonCliArgs are the command line arguments and environment variable definitions understood by the configuration infrastructure shared between the operator and the oauth service.

type LoggingCliArgs

type LoggingCliArgs struct {
	ZapDevel           bool   `` /* 213-byte string literal not displayed */
	ReconcileLogging   bool   `` /* 167-byte string literal not displayed */
	ZapEncoder         string `arg:"--zap-encoder, env" default:"" help:"Zap log encoding (‘json’ or ‘console’)"`
	ZapLogLevel        string `arg:"--zap-log-level, env" default:"" help:"Zap Level to configure the verbosity of logging"`
	ZapStackTraceLevel string `arg:"--zap-stacktrace-level, env" default:"" help:"Zap Level at and above which stacktraces are captured"`
	ZapTimeEncoding    string `` /* 127-byte string literal not displayed */
}

LoggingCliArgs define the command line arguments for configuring the logging using Zap.

type OperatorCliArgs

type OperatorCliArgs struct {
	CommonCliArgs
	LoggingCliArgs
	EnableLeaderElection bool `` /* 166-byte string literal not displayed */
}

type TokenStorageType

type TokenStorageType string
const (
	VaultTokenStorage TokenStorageType = "vault"
	AWSTokenStorage   TokenStorageType = "aws"
	ESSecretStorage   TokenStorageType = "es"
	InMemoryStorage   TokenStorageType = "memory"
)

Jump to

Keyboard shortcuts

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