Skip to content

Conversation

acpana
Copy link
Collaborator

@acpana acpana commented Jul 22, 2025

feat: separate op for maintenanceVersion for SQLInstance

Note the error without the patch on the controller:

...
Upgrading maintenance version and changing other fields at the same time is not allowed.
...

Does this PR add something which needs to be 'release noted'?

Fix bug in SQLInstance `maintenanceVersion` UPDATE operation

@acpana acpana marked this pull request as ready for review July 23, 2025 20:30
@cheftako cheftako added this to the 1.134 milestone Jul 24, 2025
@acpana acpana force-pushed the acpana/sqlinstance-fields-mv branch 2 times, most recently from 401f26c to 4544723 Compare July 31, 2025 05:33
@anhdle-sso
Copy link
Collaborator

/lgtm

@anhdle-sso anhdle-sso assigned cheftako and unassigned anhdle-sso Aug 5, 2025
@google-oss-prow google-oss-prow bot added the lgtm label Aug 5, 2025
if body.MaintenanceVersion != "" {
obj.MaintenanceVersion = body.MaintenanceVersion
}
// todo kcc team: refactor this all so we can pass in specific values for database settings
Copy link
Collaborator

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

Copy link
Collaborator Author

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 🙏🏼

acpana added 6 commits August 12, 2025 21:38
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>
@acpana acpana force-pushed the acpana/sqlinstance-fields-mv branch from 17b2212 to 3eab59b Compare August 12, 2025 21:41
@google-oss-prow google-oss-prow bot removed the lgtm label Aug 12, 2025
@cheftako
Copy link
Collaborator

/lgtm
/approve

@google-oss-prow google-oss-prow bot added the lgtm label Aug 13, 2025
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 654d2e9 into master Aug 13, 2025
115 of 118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants