From 304bc16bee812c745c3f8f7a42423af812fa60c7 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 24 Feb 2025 14:52:14 +0100 Subject: [PATCH] Remove duplicated struct tag Co-authored-by: Andre Duffeck --- pkg/tracing/config.go | 2 +- services/idm/pkg/config/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tracing/config.go b/pkg/tracing/config.go index 7930148a41..5988e5fbe6 100644 --- a/pkg/tracing/config.go +++ b/pkg/tracing/config.go @@ -8,7 +8,7 @@ type ConfigConverter interface { // Tracing defines the available tracing configuration. type Config struct { Enabled bool `yaml:"enabled" env:"OC_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"1.0.0"` - Type string `yaml:"type" env:"OC_TRACING_TYPE" desc:"The type of tracing. Defaults to \"\", which is the same as \"jaeger\". Allowed tracing types are \"jaeger\" and \"\" as of now." introductionVersion:"1.0.0" introductionVersion:"1.0.0"` + Type string `yaml:"type" env:"OC_TRACING_TYPE" desc:"The type of tracing. Defaults to \"\", which is the same as \"jaeger\". Allowed tracing types are \"jaeger\" and \"\" as of now." introductionVersion:"1.0.0"` Endpoint string `yaml:"endpoint" env:"OC_TRACING_ENDPOINT" desc:"The endpoint of the tracing agent." introductionVersion:"1.0.0"` Collector string `yaml:"collector" env:"OC_TRACING_COLLECTOR" desc:"The HTTP endpoint for sending spans directly to a collector, i.e. http://jaeger-collector:14268/api/traces. Only used if the tracing endpoint is unset." introductionVersion:"1.0.0"` } diff --git a/services/idm/pkg/config/log.go b/services/idm/pkg/config/log.go index f508ff43fd..ebcd31aa5d 100644 --- a/services/idm/pkg/config/log.go +++ b/services/idm/pkg/config/log.go @@ -5,5 +5,5 @@ type Log struct { Level string `mapstructure:"level" env:"OC_LOG_LEVEL;IDM_LOG_LEVEL" desc:"The log level. Valid values are: 'panic', 'fatal', 'error', 'warn', 'info', 'debug', 'trace'." introductionVersion:"1.0.0"` Pretty bool `mapstructure:"pretty" env:"OC_LOG_PRETTY;IDM_LOG_PRETTY" desc:"Activates pretty log output." introductionVersion:"1.0.0"` Color bool `mapstructure:"color" env:"OC_LOG_COLOR;IDM_LOG_COLOR" desc:"Activates colorized log output." introductionVersion:"1.0.0"` - File string `mapstructure:"file" env:"OC_LOG_FILE;IDM_LOG_FILE" desc:"The path to the log file. Activates logging to this file if set." introductionVersion:"1.0.0" introductionVersion:"1.0.0"` + File string `mapstructure:"file" env:"OC_LOG_FILE;IDM_LOG_FILE" desc:"The path to the log file. Activates logging to this file if set." introductionVersion:"1.0.0"` }