Skip to content

Conversation

lsierant
Copy link
Contributor

Summary

This PR exposes logging configuration of mongot pods to MongoDBSearch CRD.

Proof of Work

Checklist

  • Have you linked a jira ticket and/or is the ticket in the title?
  • Have you checked whether your jira ticket required DOCSP changes?
  • Have you added changelog file?

@lsierant lsierant requested a review from a team as a code owner September 15, 2025 15:53
Copy link

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.3.1 Release Notes

@lsierant lsierant force-pushed the lsierant/search-loglevel branch from 2afc430 to 3d3b1dc Compare September 15, 2025 15:55
@lsierant lsierant added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Sep 15, 2025
// Configure verbosity of mongot logs. Defaults to INFO if not set.
// +kubebuilder:validation:Enum=TRACE;DEBUG;INFO;WARN;ERROR
// +optional
LogLevel mdb.LogLevel `json:"logLevel,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

q: would users potentially be able to configure log level of any other components in future? For example mongos or anything like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do have already. Look for other logLevel instances in our crd types:

// +kubebuilder:validation:Enum=DEBUG;INFO;WARN;ERROR;FATAL
LogLevel LogLevel `json:"logLevel,omitempty"`
// ExternalAccessConfiguration provides external access configuration.

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant would we be able to configure LogLevel of any other component using MongoDBSearch api. I was asking that because if that's the case just LogLevel as field name might not be sufficient right?

@fealebenpae fealebenpae merged commit 5db118d into master Sep 15, 2025
35 of 38 checks passed
@fealebenpae fealebenpae deleted the lsierant/search-loglevel branch September 15, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Use this label in Pull Request to not require new changelog entry file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants