Skip to content

Commit 6416ca2

Browse files
fix: make apm config a pointer (#2995)
This commit makes the APM configuration a pointer so that we can properly nil check it in the handler.
1 parent 4d64420 commit 6416ca2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

api/datadoghq/v1alpha1/datadoginstrumentation_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type DatadogInstrumentationConfig struct {
3030

3131
// APM configures the APM product through Single Step Instrumentation for the target workload.
3232
// +optional
33-
APM DatadogInstrumentationAPMConfig `json:"apm,omitempty"`
33+
APM *DatadogInstrumentationAPMConfig `json:"apm,omitempty"`
3434
}
3535

3636
// DatadogInstrumentationAPMConfig defines workload-scoped APM configuration.

api/datadoghq/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)