Skip to content

Commit

Permalink
Add version to the different feature flags (#1958)
Browse files Browse the repository at this point in the history
* Add version to the different feature flags

Signed-off-by: Israel Blancas <[email protected]>

* Add missing version

Signed-off-by: Israel Blancas <[email protected]>

---------

Signed-off-by: Israel Blancas <[email protected]>
  • Loading branch information
iblancasa committed Jul 24, 2023
1 parent 9e7fe16 commit e21920f
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions pkg/featuregate/featuregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,48 @@ var (
EnableDotnetAutoInstrumentationSupport = featuregate.GlobalRegistry().MustRegister(
"operator.autoinstrumentation.dotnet",
featuregate.StageBeta,
featuregate.WithRegisterDescription("controls whether the operator supports .NET auto-instrumentation"))
featuregate.WithRegisterDescription("controls whether the operator supports .NET auto-instrumentation"),
featuregate.WithRegisterFromVersion("v0.76.1"),
)
EnablePythonAutoInstrumentationSupport = featuregate.GlobalRegistry().MustRegister(
"operator.autoinstrumentation.python",
featuregate.StageBeta,
featuregate.WithRegisterDescription("controls whether the operator supports Python auto-instrumentation"))
featuregate.WithRegisterDescription("controls whether the operator supports Python auto-instrumentation"),
featuregate.WithRegisterFromVersion("v0.76.1"),
)
EnableJavaAutoInstrumentationSupport = featuregate.GlobalRegistry().MustRegister(
"operator.autoinstrumentation.java",
featuregate.StageBeta,
featuregate.WithRegisterDescription("controls whether the operator supports Java auto-instrumentation"))
featuregate.WithRegisterDescription("controls whether the operator supports Java auto-instrumentation"),
featuregate.WithRegisterFromVersion("v0.76.1"),
)
EnableNodeJSAutoInstrumentationSupport = featuregate.GlobalRegistry().MustRegister(
"operator.autoinstrumentation.nodejs",
featuregate.StageBeta,
featuregate.WithRegisterDescription("controls whether the operator supports NodeJS auto-instrumentation"))
featuregate.WithRegisterDescription("controls whether the operator supports NodeJS auto-instrumentation"),
featuregate.WithRegisterFromVersion("v0.76.1"),
)
EnableGoAutoInstrumentationSupport = featuregate.GlobalRegistry().MustRegister(
"operator.autoinstrumentation.go",
featuregate.StageAlpha,
featuregate.WithRegisterDescription("controls whether the operator supports Golang auto-instrumentation"))
featuregate.WithRegisterDescription("controls whether the operator supports Golang auto-instrumentation"),
featuregate.WithRegisterFromVersion("v0.77.0"),
)
EnableApacheHTTPAutoInstrumentationSupport = featuregate.GlobalRegistry().MustRegister(
"operator.autoinstrumentation.apache-httpd",
featuregate.StageBeta,
featuregate.WithRegisterDescription("controls whether the operator supports Apache HTTPD auto-instrumentation"))
featuregate.WithRegisterDescription("controls whether the operator supports Apache HTTPD auto-instrumentation"),
featuregate.WithRegisterFromVersion("v0.80.0"),
)

// EnableTargetAllocatorRewrite is the feature gate that controls whether the collector's configuration should
// automatically be rewritten when the target allocator is enabled.
EnableTargetAllocatorRewrite = featuregate.GlobalRegistry().MustRegister(
"operator.collector.rewritetargetallocator",
featuregate.StageAlpha,
featuregate.WithRegisterDescription("controls whether the operator should configure the collector's targetAllocator configuration"))
featuregate.WithRegisterDescription("controls whether the operator should configure the collector's targetAllocator configuration"),
featuregate.WithRegisterFromVersion("v0.76.1"),
)
)

// Flags creates a new FlagSet that represents the available featuregate flags using the supplied featuregate registry.
Expand Down

0 comments on commit e21920f

Please sign in to comment.