You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[configoptional] Add support for setting an 'enabled' field under a feature gate (#13995)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
<!-- Issue number if applicable -->
Adds support for disabling or enabling optional fields through an
`enabled` key under an alpha feature gate,
`configoptional.AddEnabledField`. For example, the following
configuration becomes valid:
```yaml
receivers:
otlp:
protocols:
grpc:
enabled: true
exporters:
nop:
service:
pipelines:
traces:
receivers: [otlp]
exporters: [nop]
```
and is equivalent to:
```yaml
receivers:
otlp:
protocols:
grpc:
exporters:
nop:
service:
pipelines:
traces:
receivers: [otlp]
exporters: [nop]
```
#### Link to tracking issue
Fixes#13894
Updates #14021
# Use this changelog template to create an entry for release notes.
2
+
3
+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4
+
change_type: enhancement
5
+
6
+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7
+
component: pkg/config/configoptional
8
+
9
+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10
+
note: Adds new `configoptional.AddEnabledField` feature gate that allows users to explicitly disable a `configoptional.Optional` through a new `enabled` field.
11
+
12
+
# One or more tracking issues or pull requests related to the change
13
+
issues: [14021]
14
+
15
+
# (Optional) One or more lines of additional information to render under the primary note.
16
+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17
+
# Use pipe (|) for multiline entries.
18
+
subtext:
19
+
20
+
# Optional: The change log or logs in which this entry should be included.
21
+
# e.g. '[user]' or '[user, api]'
22
+
# Include 'user' if the change is relevant to end users.
23
+
# Include 'api' if there is a change to a library API.
0 commit comments