Skip to content

Commit

Permalink
Add status fields for instrumentation kind (#717)
Browse files Browse the repository at this point in the history
* expose exporter endpoint, sampler type and argument of instrumentation

Signed-off-by: Benedikt Bongartz <[email protected]>

* regenerate otel-instrumentations

Signed-off-by: Benedikt Bongartz <[email protected]>
  • Loading branch information
frzifus authored Feb 21, 2022
1 parent 6faf246 commit 78100be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/v1alpha1/instrumentation_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ type InstrumentationStatus struct {
// +kubebuilder:resource:shortName=otelinst;otelinsts
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Endpoint",type="string",JSONPath=".spec.exporter.endpoint"
// +kubebuilder:printcolumn:name="Sampler",type="string",JSONPath=".spec.sampler.type"
// +kubebuilder:printcolumn:name="Sampler Arg",type="string",JSONPath=".spec.sampler.argument"
// +operator-sdk:csv:customresourcedefinitions:displayName="OpenTelemetry Instrumentation"
// +operator-sdk:csv:customresourcedefinitions:resources={{Pod,v1}}

Expand Down
9 changes: 9 additions & 0 deletions bundle/manifests/opentelemetry.io_instrumentations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .spec.exporter.endpoint
name: Endpoint
type: string
- jsonPath: .spec.sampler.type
name: Sampler
type: string
- jsonPath: .spec.sampler.argument
name: Sampler Arg
type: string
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/opentelemetry.io_instrumentations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ spec:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .spec.exporter.endpoint
name: Endpoint
type: string
- jsonPath: .spec.sampler.type
name: Sampler
type: string
- jsonPath: .spec.sampler.argument
name: Sampler Arg
type: string
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down

0 comments on commit 78100be

Please sign in to comment.