Skip to content

Additional instrumentation crd validation#4434

Merged
dsessler7 merged 2 commits intoCrunchyData:mainfrom
dsessler7:additional-instrumentation-crd-validation
Feb 18, 2026
Merged

Additional instrumentation crd validation#4434
dsessler7 merged 2 commits intoCrunchyData:mainfrom
dsessler7:additional-instrumentation-crd-validation

Conversation

@dsessler7
Copy link
Collaborator

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the current behavior (link to any open issues here)?

No test for postgrescluster instrumentation validation. No test cases for batches or detectors with attributes in TestEnablePostgresLogging.

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)

This PR adds a test for the instrumentation spec validation in PostgresClusters. It also adds tests that ensure settings for batches and detectors with attributes get set properly in the collector configuration.

Other Information:

Copy link
Contributor

@tjmoore4 tjmoore4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice tests, one non-blocking nitpick

t.Run("Reversed", func(t *testing.T) {
for _, batches := range []string{
`maxRecords: 99`, // default minRecords
`minRecords: 99, maxRecords: 21`, //
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Missing comment info here

@dsessler7 dsessler7 merged commit 2be5109 into CrunchyData:main Feb 18, 2026
21 checks passed
@dsessler7 dsessler7 deleted the additional-instrumentation-crd-validation branch February 18, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments