Documentation ¶
Index ¶
- Constants
- Variables
- func GetAsyncExecutorMaxGoRoutines() int32
- func GetCacheRefreshInterval() time.Duration
- func GetClusterRegistriesNamespace() string
- func GetConfigPath() string
- func GetConfigResolver() string
- func GetDependenciesNamespace() string
- func GetDeprecatedEnvoyFilterVersions() []string
- func GetEnvKey() string
- func GetEnvironment() string
- func GetEnvoyFilterVersions() []string
- func GetHostnameSuffix() string
- func GetKubeConfigPath() string
- func GetLogColor() bool
- func GetLogLevel() string
- func GetMeshInjectionEnabledKey() string
- func GetProfilerEndpoint() string
- func GetResourceIgnoreLabel() string
- func GetSecretSyncLabel() string
- func GetStartUpTime() time.Time
- func GetStateChecker() string
- func GetSyncNamespace() string
- func GetTrafficConfigIdentityKey() string
- func GetTrafficConfigIgnoreAssets() []string
- func GetTrafficConfigNamespace() string
- func GetTrafficConfigScope() []string
- func GetWorkerConcurrency() int
- func GetWorkloadIdentityKey() string
- func InitializeNaavikArgs(args *NaavikArgs)
- func IsArgoRolloutsEnabled() bool
- func IsAssetIgnored(asset string) bool
- func IsCacheWarmedUp() bool
- func IsClusterInAllowedScope(cluster string) bool
- func IsFeatureEnabled(feature types.FeatureName) bool
- func IsProfilingEnabled() bool
- type NaavikArgs
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 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 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 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 IsCacheWarmedUp ¶
func IsCacheWarmedUp() bool
func IsClusterInAllowedScope ¶
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
Click to show internal directories.
Click to hide internal directories.