Skip to content

Add stricter types to some of the fields in the database status. #2272

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brownleej
Copy link
Member

Description

Please include a summary of the change and which issue is addressed. If this change resolves an issue, please include the issue number in the description.

When looking at how we were using the database status in some other projects, I noticed frequent type conversions in a couple of places. This updates the related fields to have more precise types, reflecting the ranges of values they can hold.

Type of change

Please select one of the options below.

  • Bug fix (non-breaking change which fixes an issue)

Discussion

Are there any design details that you would like to discuss further?

I'm keeping this as a draft PR to start with, because I realized it presented a small breaking change, and I wanted to get some feedback on how we want to handle that in general. Is it better to leave this kind of change to a major version, and maybe add TODOs to indicate that we should follow up on these changes in the next major release?

Testing

Please describe the tests that you ran to verify your changes. Unit tests?
Manual testing?

I updated the types in the unit tests, and ran the test suite locally.

Do we need to perform additional testing once this is merged, or perform in a larger testing environment?

No.

Documentation

Did you update relevant documentation within this repository?

No.

If this change is adding new functionality, do we need to describe it in our user manual?

No.

If this change is adding or removing subreconcilers, have we updated the core technical design doc to reflect that?

No.

If this change is adding new safety checks or new potential failure modes, have we documented and how to debug potential issues?

No.

Follow-up

Are there any follow-up issues that we should pursue in the future?

No.

Does this introduce new defaults that we should re-evaluate in the future?

No.

@foundationdb-ci
Copy link

Result of fdb-kubernetes-operator-pr on Linux RHEL 9

  • Commit ID: 9de496f
  • Duration 3:33:11
  • Result: ❌ FAILED
  • Error: Error while executing command: if $fail_test; then exit 1; fi. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

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