[cmd/mdatagen] add unsupported platforms to the README header (#9803)
**Description:** Add unsupported platforms to the README header **Link to tracking Issue:** Fixes #9794
This commit is contained in:
parent
4b5d68ed28
commit
b5ce2836c3
|
|
@ -0,0 +1,25 @@
|
||||||
|
# Use this changelog template to create an entry for release notes.
|
||||||
|
|
||||||
|
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
|
||||||
|
change_type: enhancement
|
||||||
|
|
||||||
|
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
|
||||||
|
component: mdatagen
|
||||||
|
|
||||||
|
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
|
||||||
|
note: Adds unsupported platforms to the README header
|
||||||
|
|
||||||
|
# One or more tracking issues or pull requests related to the change
|
||||||
|
issues: [9794]
|
||||||
|
|
||||||
|
# (Optional) One or more lines of additional information to render under the primary note.
|
||||||
|
# These lines will be padded with 2 spaces and then inserted directly into the document.
|
||||||
|
# Use pipe (|) for multiline entries.
|
||||||
|
subtext:
|
||||||
|
|
||||||
|
# Optional: The change log or logs in which this entry should be included.
|
||||||
|
# e.g. '[user]' or '[user, api]'
|
||||||
|
# Include 'user' if the change is relevant to end users.
|
||||||
|
# Include 'api' if there is a change to a library API.
|
||||||
|
# Default: '[user]'
|
||||||
|
change_logs: []
|
||||||
|
|
@ -8,6 +8,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pattern": "http(s)?://example.com"
|
"pattern": "http(s)?://example.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "#warnings"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"aliveStatusCodes": [429, 200],
|
"aliveStatusCodes": [429, 200],
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Sample Receiver
|
||||||
|
This receiver is used for testing purposes to check the output of mdatagen.
|
||||||
|
<!-- status autogenerated section -->
|
||||||
|
| Status | |
|
||||||
|
| ------------- |-----------|
|
||||||
|
| Stability | [development]: logs |
|
||||||
|
| | [beta]: traces |
|
||||||
|
| | [stable]: metrics |
|
||||||
|
| Unsupported Platforms | freebsd, illumos |
|
||||||
|
| Distributions | [] |
|
||||||
|
| Warnings | [Any additional information that should be brought to the consumer's attention](#warnings) |
|
||||||
|
| Issues | [](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Areceiver%2Fsample) [](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Areceiver%2Fsample) |
|
||||||
|
| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@dmitryax](https://www.github.com/dmitryax) |
|
||||||
|
|
||||||
|
[development]: https://github.com/open-telemetry/opentelemetry-collector#development
|
||||||
|
[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
|
||||||
|
[stable]: https://github.com/open-telemetry/opentelemetry-collector#stable
|
||||||
|
<!-- end autogenerated section -->
|
||||||
|
|
||||||
|
## Warnings
|
||||||
|
|
||||||
|
This is where warnings are described.
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
// Code generated by mdatagen. DO NOT EDIT.
|
// Code generated by mdatagen. DO NOT EDIT.
|
||||||
|
//go:build !freebsd && !illumos
|
||||||
|
|
||||||
package samplereceiver
|
package samplereceiver
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ status:
|
||||||
beta: [traces]
|
beta: [traces]
|
||||||
stable: [metrics]
|
stable: [metrics]
|
||||||
distributions: []
|
distributions: []
|
||||||
|
unsupported_platforms: [freebsd, illumos]
|
||||||
codeowners:
|
codeowners:
|
||||||
active: [dmitryax]
|
active: [dmitryax]
|
||||||
warnings:
|
warnings:
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ func TestLoadMetadata(t *testing.T) {
|
||||||
Active: []string{"dmitryax"},
|
Active: []string{"dmitryax"},
|
||||||
},
|
},
|
||||||
Warnings: []string{"Any additional information that should be brought to the consumer's attention"},
|
Warnings: []string{"Any additional information that should be brought to the consumer's attention"},
|
||||||
|
UnsupportedPlatforms: []string{"freebsd", "illumos"},
|
||||||
},
|
},
|
||||||
ResourceAttributes: map[attributeName]attribute{
|
ResourceAttributes: map[attributeName]attribute{
|
||||||
"string.resource.attr": {
|
"string.resource.attr": {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@
|
||||||
{{- $idx = inc $idx }}
|
{{- $idx = inc $idx }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if .Status.UnsupportedPlatforms }}
|
||||||
|
| Unsupported Platforms | {{ stringsJoin .Status.UnsupportedPlatforms ", " }} |
|
||||||
|
{{- end }}
|
||||||
{{- if and (ne $class "cmd") (ne $class "pkg") }}
|
{{- if and (ne $class "cmd") (ne $class "pkg") }}
|
||||||
| Distributions | [{{ stringsJoin .Status.SortedDistributions "], [" }}] |
|
| Distributions | [{{ stringsJoin .Status.SortedDistributions "], [" }}] |
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue