config

package
v0.0.0-...-97dd610 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolEnv

func GetBoolEnv(name string, defvalue bool) bool

func GetDefaultResourcelockIdentity

func GetDefaultResourcelockIdentity() string

func GetIntEnv

func GetIntEnv(name string, defvalue int) int

func GetStringEnv

func GetStringEnv(name string, defvalue string) string

Types

type Options

type Options struct {
	Namespace   string
	ServiceName string

	PlainServerPort  int
	SecureServerPort int
	DebugPort        int

	WebhookPort       int32
	WebhookAllowOnErr bool

	CaValidity   int64
	CertValidity int64

	InPodEnv              bool
	IsKubernetesConnected bool
	IsTrustAnyone         bool

	// TODO remove EnableOIDCCheck
	EnableOIDCCheck      bool
	ResourcelockIdentity string

	// Qps for rest config
	RestConfigQps int
	// Burst for rest config
	RestConfigBurst int
}

func NewOptions

func NewOptions() *Options

func (*Options) FillFlags

func (o *Options) FillFlags(flags *pflag.FlagSet)

func (*Options) Validate

func (o *Options) Validate() []error

Jump to

Keyboard shortcuts

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