options

package
v0.0.0-...-59d7cbf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSecretNamespace            = "admiral"
	DefaultDependencyNamespace        = "admiral"
	DefaultClusterRegistriesNamespace = "admiral"
	DefaultSyncNamespace              = "admiral-sync"
	DefaultWorkloadIdentity           = "alpha.istio.io/identity"
	DefaultWorkloadEnvKey             = "admiral.io/env"
	DefaultResourceIgnoreLabel        = "admiral.io/ignore"
	DefaultSecretSyncLabel            = "admiral.io/sync"
	DefaultMeshInjectionKey           = "sidecar.istio.io/inject"
	DefaultHostnameSuffix             = "mesh"
	DefaultConfigPath                 = "/etc/admiral/config.yaml"
	DefaultLogLevel                   = "info"
	DefaultLogColor                   = false
	DefaultProfilerEndpoint           = "localhost:4040"
	DefaultArgoRolloutsEnabled        = true
	DefaultEnableProfiling            = false
	DefaultConfigResolver             = types.ConfigResolverSecret
	DefaultStateChecker               = types.StateCheckerNone
	DefaultTrafficConfigNamespace     = "admiral"
	DefaultTrafficConfigIdentityKey   = "asset"
	DefaultRefreshInterval            = time.Minute
	DefaultAsyncExecutorMaxGoRoutines = 20000
	DefaultWorkerConcurrency          = 1
)

Variables

View Source
var (
	DefaultTrafficConfigClustersScope    = []string{".*"}
	DefaultIgnoreAssetAliases            = []string{}
	DefaultEnvoyFilterVersions           = []string{"1.21"}
	DefaultDeprecatedEnvoyFilterVersions = []string{"1.13"}
	DefaultDisabledFeatures              = []string{""}

	AvailableFeatures = []types.FeatureName{types.FeatureThrottleFilter, types.FeatureVirtualService}
)
View Source
var (
	Params      = NaavikArgs{}
	StartUpTime = time.Now()
)

Functions

func GetAsyncExecutorMaxGoRoutines

func GetAsyncExecutorMaxGoRoutines() int32

func GetCacheRefreshInterval

func GetCacheRefreshInterval() time.Duration

func GetClusterRegistriesNamespace

func GetClusterRegistriesNamespace() string

func GetConfigPath

func GetConfigPath() string

func GetConfigResolver

func GetConfigResolver() string

func GetDependenciesNamespace

func GetDependenciesNamespace() string

func GetDeprecatedEnvoyFilterVersions

func GetDeprecatedEnvoyFilterVersions() []string

func GetEnvKey

func GetEnvKey() string

func GetEnvironment

func GetEnvironment() string

func GetEnvoyFilterVersions

func GetEnvoyFilterVersions() []string

func GetHostnameSuffix

func GetHostnameSuffix() string

func GetKubeConfigPath

func GetKubeConfigPath() string

func GetLogColor

func GetLogColor() bool

func GetLogLevel

func GetLogLevel() string

func GetMeshInjectionEnabledKey

func GetMeshInjectionEnabledKey() string

func GetProfilerEndpoint

func GetProfilerEndpoint() string

func GetResourceIgnoreLabel

func GetResourceIgnoreLabel() string

func GetSecretSyncLabel

func GetSecretSyncLabel() string

func GetStartUpTime

func GetStartUpTime() time.Time

func GetStateChecker

func GetStateChecker() string

func GetSyncNamespace

func GetSyncNamespace() string

func GetTrafficConfigIdentityKey

func GetTrafficConfigIdentityKey() string

func GetTrafficConfigIgnoreAssets

func GetTrafficConfigIgnoreAssets() []string

func GetTrafficConfigNamespace

func GetTrafficConfigNamespace() string

func GetTrafficConfigScope

func GetTrafficConfigScope() []string

func GetWorkerConcurrency

func GetWorkerConcurrency() int

func GetWorkloadIdentityKey

func GetWorkloadIdentityKey() string

func InitializeNaavikArgs

func InitializeNaavikArgs(args *NaavikArgs)

func IsArgoRolloutsEnabled

func IsArgoRolloutsEnabled() bool

func IsAssetIgnored

func IsAssetIgnored(asset string) bool

func IsCacheWarmedUp

func IsCacheWarmedUp() bool

func IsClusterInAllowedScope

func IsClusterInAllowedScope(cluster string) bool

func IsFeatureEnabled

func IsFeatureEnabled(feature types.FeatureName) bool

func IsProfilingEnabled

func IsProfilingEnabled() bool

Types

type NaavikArgs

type NaavikArgs struct {
	LogLevel                string
	LogColor                bool
	ArgoRolloutsEnabled     bool
	ConfigPath              string
	WorkloadIdentityKey     string
	MeshInjectionEnabledKey string
	EnvKey                  string
	ResourceIgnoreLabel     string
	SecretSyncLabel         string
	HostnameSuffix          string
	EnableProfiling         bool
	ProfilerEndpoint        string

	ConfigResolver string
	StateChecker   string

	TrafficConfigNamespace        string
	TrafficConfigIdentityKey      string
	AllowedClusterScope           []string
	IgnoreAssetAliases            []string
	EnvoyFilterVersions           []string
	DeprecatedEnvoyFilterVersions []string
	DisabledFeatures              []string
	AsyncExecutorMaxGoRoutines    int
	WorkerConcurrency             int

	CacheRefreshInterval time.Duration

	KubeConfigPath             string
	ClusterRegistriesNamespace string
	DependenciesNamespace      string
	SyncNamespace              string
}

NaavikArgs contains the arguments for the naavik.

func GetNaavikArgs

func GetNaavikArgs() NaavikArgs

Jump to

Keyboard shortcuts

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