-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add mapstructure tag to backup task spec and fix conversion funcs #1854
Add mapstructure tag to backup task spec and fix conversion funcs #1854
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/assign @zimnx
36d3d3f
to
b897735
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rzetelskik, tnozicka, zimnx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description of your changes: This PR addresses a missing mapstructure tag in BackupTaskStatus, causing the conversion between our and manager api to miss task properties entirely.
The mapstructure is used in functions converting managerclient structs to our internal specs:
scylla-operator/pkg/controller/manager/types_old.go
Line 86 in 1520cf7
At this point this is one of the issues behind unnecessary updates #1827, but it's also required for fixing status synchronisation: #1850, hence the priority.
This PR also fixes manager task conversion func bug and adds unit tests covering the conversion.
Which issue is resolved by this Pull Request:
Resolves #1852
/kind bug
/priority critical-urgent