Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing memory monitoring event log #409

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

yawangwang
Copy link
Collaborator

The default measurement value for memory monitoring is false for now. So for the image version 231201 that supports memory monitoring but without its measurement, if operators enable the memory monitoring feature, the measurement is still false.

Since the measurement should always reflect the actual state of the image, we should make the field as null for image versions that don't support memory monitoring measurement.

This PR includes a fix to make the proto field memory_enabled as optional such that the default value is a pointer instead a boolean value.

@yawangwang
Copy link
Collaborator Author

/gcbrun

@yawangwang yawangwang requested a review from jkl73 January 24, 2024 19:34
Copy link
Contributor

@jkl73 jkl73 left a comment

Choose a reason for hiding this comment

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

good catch!

@yawangwang yawangwang merged commit e2d4797 into google:main Jan 25, 2024
11 checks passed
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