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

Backport PR #2305 to release/v1.7 for Add rotate-all option to rotator #2393

Merged

Conversation

vdaas-ci
Copy link
Collaborator

Description:

This PR adds a feature for the rotator to rotate all the read replica agent when TARGET_REPLICA_ID=rotate-all is specified. This is mainly useful for development purpose.

Related Issue:

Versions:

  • Go Version: 1.21.5
  • Docker Version: 20.10.8
  • Kubernetes Version: v1.28.4
  • NGT Version: 2.1.6

Checklist:

Special notes for your reviewer:

* Add rotate-all option to rotator

* Fix linter warnings

* Make it possible to choose multiple rotation target

* Add tests for parseReplicaID

* Add tests for parseReplicaID

* Hide testify in internal

* style: format code with Gofumpt and Prettier

This commit fixes the style issues introduced in dd84674 according to the output
from Gofumpt and Prettier.

Details: #2305

* Apply format

* Lint

* Lint

---------

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Yusuke Kato <kpango@vdaas.org>
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 535f7b2
Status: ✅  Deploy successful!
Preview URL: https://aeeef060.vald.pages.dev
Branch Preview URL: https://backport-release-v1-7-featur-quw7.vald.pages.dev

View logs

@vdaas-ci
Copy link
Collaborator Author

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 90 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (release/v1.7@42225c8). Click here to learn what that means.

Files Patch % Lines
...kg/index/job/readreplica/rotate/service/rotator.go 20.00% 69 Missing and 3 partials ⚠️
internal/test/mock/k8s/client.go 25.00% 18 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             release/v1.7    #2393   +/-   ##
===============================================
  Coverage                ?   18.71%           
===============================================
  Files                   ?      549           
  Lines                   ?    73865           
  Branches                ?        0           
===============================================
  Hits                    ?    13826           
  Misses                  ?    59299           
  Partials                ?      740           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ykadowak ykadowak merged commit dd7be4c into release/v1.7 Feb 21, 2024
126 checks passed
@ykadowak ykadowak deleted the backport/release/v1.7/feature/rotator/add-all-option branch February 21, 2024 02:19
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.

None yet

2 participants