-
Notifications
You must be signed in to change notification settings - Fork 291
feat: separate op for maintenanceVersion #4838
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
Conversation
bf5954c
to
7f6f64d
Compare
...ure/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-maintenanceversion-direct/create.yaml
Outdated
Show resolved
Hide resolved
...ure/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-maintenanceversion-direct/update.yaml
Show resolved
Hide resolved
...ure/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-maintenanceversion-direct/create.yaml
Outdated
Show resolved
Hide resolved
...ure/testdata/basic/sql/v1beta1/sqlinstance/sqlinstance-maintenanceversion-direct/update.yaml
Show resolved
Hide resolved
401f26c
to
4544723
Compare
/lgtm |
if body.MaintenanceVersion != "" { | ||
obj.MaintenanceVersion = body.MaintenanceVersion | ||
} | ||
// todo kcc team: refactor this all so we can pass in specific values for database settings |
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.
Can you also tweak the mock so that it exhibits the behaviour we got wrong?
Ideally we would have
- commit adding test or enhancing existing test (including GCP log, fine to split that into another commit - I would probably create a separate commit if it's a separate test, but if you can reuse an existing test so it's more like a 10 line diff I would keep them in the same commit)
- commit adding mockgcp behaviour (so test now fails)
- commit fixing controller
- commit updating golden output with fixed controller
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.
+1
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.
restructured the commits according to this suggestion 🙏🏼
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
17b2212
to
3eab59b
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako 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 |
feat: separate op for maintenanceVersion for SQLInstance
Note the error without the patch on the controller:
Does this PR add something which needs to be 'release noted'?