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

Remove ETCd database and secret store #8158

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

rynowak
Copy link
Contributor

@rynowak rynowak commented Dec 19, 2024

Description

These are unused now that we're using the simpler in-memory components for testing. Removing these simplifies the code and reduces our binary size by removing a chunky dependency.

For reviewers, the ETCd support being removed is NOT what users use today. That's the 'apiserver' database and the 'kubernetes' secret store. There is no change in behavior in this PR, we're removing something unused.

We're planning to use PostgreSQL for production-quality support in Radius, so we have no plans to use ETCd going forward.

Type of change

  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
  • If applicable, design document has been reviewed and approved by Radius maintainers/approvers.
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.

These are unused now that we're using the simpler in-memory components for testing. Removing these simplifies the code and reduces our binary size by removing a chunky dependency.

For reviewers, the ETCd support being removed is NOT what users use today. That's the 'apiserver' database and the 'kubernetes' secret store. There is no change in behavior in this PR, we're removing something unused.

We're planning to use PostgreSQL for production-quality support in Radius, so we have no plans to use ETCd going forward.

Signed-off-by: Ryan Nowak <nowakra@gmail.com>
@rynowak rynowak requested review from a team as code owners December 19, 2024 21:40
@@ -67,8 +67,6 @@ require (
github.com/stern/stern v1.31.0
github.com/stretchr/testify v1.10.0
github.com/wI2L/jsondiff v0.6.1
go.etcd.io/etcd/client/v3 v3.5.17
go.etcd.io/etcd/server/v3 v3.5.17
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Look at all of that beautiful, beautiful red!

@rynowak rynowak deployed to functional-tests December 19, 2024 21:43 — with GitHub Actions Active
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 19, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository rynowak/radius
Commit ref 4afc7a2
Unique ID funcedfbd6795b
Image tag pr-funcedfbd6795b
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funcedfbd6795b
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funcedfbd6795b
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-funcedfbd6795b
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcedfbd6795b
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcedfbd6795b
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting corerp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.02%. Comparing base (8632b60) to head (4afc7a2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8158      +/-   ##
==========================================
+ Coverage   59.89%   60.02%   +0.13%     
==========================================
  Files         584      580       -4     
  Lines       38939    38469     -470     
==========================================
- Hits        23322    23091     -231     
+ Misses      13876    13682     -194     
+ Partials     1741     1696      -45     

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

@rynowak rynowak merged commit defd40b into radius-project:main Dec 19, 2024
29 checks passed
@rynowak rynowak deleted the remove-etcd branch December 19, 2024 22:03
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