Skip to content

Commit

Permalink
Add OpAMP example to CSV (#2386)
Browse files Browse the repository at this point in the history
Resolves the following warning from the scorecard tests:
```
Warning: Value opentelemetry.io/v1alpha1, Kind=OpAMPBridge: provided API should have an example annotation
```

Signed-off-by: Andreas Gerstmayr <[email protected]>
  • Loading branch information
andreasgerstmayr authored Nov 24, 2023
1 parent 7b9d00b commit 4baf9c0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,40 @@ metadata:
}
}
},
{
"apiVersion": "opentelemetry.io/v1alpha1",
"kind": "OpAMPBridge",
"metadata": {
"name": "opampbridge-sample"
},
"spec": {
"capabilities": {
"AcceptsOpAMPConnectionSettings": true,
"AcceptsOtherConnectionSettings": true,
"AcceptsRemoteConfig": true,
"AcceptsRestartCommand": true,
"ReportsEffectiveConfig": true,
"ReportsHealth": true,
"ReportsOwnLogs": true,
"ReportsOwnMetrics": true,
"ReportsOwnTraces": true,
"ReportsRemoteConfig": true,
"ReportsStatus": true
},
"componentsAllowed": {
"exporters": [
"logging"
],
"processors": [
"memory_limiter"
],
"receivers": [
"otlp"
]
},
"endpoint": "ws://opamp-server:4320/v1/opamp"
}
},
{
"apiVersion": "opentelemetry.io/v1alpha1",
"kind": "OpenTelemetryCollector",
Expand Down
4 changes: 3 additions & 1 deletion config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## This file is auto-generated, do not modify ##
## Append samples you want in your CSV to this file as resources ##
resources:
- core_v1alpha1_opentelemetrycollector.yaml
- instrumentation_v1alpha1_instrumentation.yaml
- _v1alpha1_opampbridge.yaml
#+kubebuilder:scaffold:manifestskustomizesamples

0 comments on commit 4baf9c0

Please sign in to comment.