Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version to the different feature flags #1958

Merged
merged 2 commits into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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