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

Implementation of Dapr Building Block: Configuration Store #7906

Merged
merged 18 commits into from
Sep 18, 2024

Conversation

SoTrx
Copy link
Contributor

@SoTrx SoTrx commented Sep 9, 2024

Description

Hey,

This PR adds support for Dapr Configuration Building block

Type of change

  • This pull request adds or changes features of Radius and has an approved issue (issue link required).

Fixes: #7889

@SoTrx SoTrx requested review from a team as code owners September 9, 2024 14:23
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 67 lines in your changes missing coverage. Please review.

Project coverage is 61.08%. Comparing base (a5e97c3) to head (e655e73).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...daprrp/processors/configurationstores/processor.go 45.45% 30 Missing and 6 partials ⚠️
pkg/daprrp/datamodel/daprconfigurationstore.go 0.00% 12 Missing ⚠️
pkg/daprrp/setup/setup.go 43.75% 8 Missing and 1 partial ⚠️
...g/corerp/backend/deployment/deploymentprocessor.go 0.00% 5 Missing ⚠️
.../v20231001preview/configurationstore_conversion.go 97.50% 1 Missing and 1 partial ⚠️
...atamodel/converter/configurationstore_converter.go 90.00% 1 Missing and 1 partial ⚠️
pkg/rp/portableresources/portableresources.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7906      +/-   ##
==========================================
+ Coverage   60.97%   61.08%   +0.11%     
==========================================
  Files         527      531       +4     
  Lines       27860    28061     +201     
==========================================
+ Hits        16988    17142     +154     
- Misses       9378     9425      +47     
  Partials     1494     1494              

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

@radius-functional-tests
Copy link

radius-functional-tests bot commented Sep 9, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository SoTrx/radius
Commit ref 346c150
Unique ID funcd8e1b09af9
Image tag pr-funcd8e1b09af9
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • 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-funcd8e1b09af9
  • 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-funcd8e1b09af9
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcd8e1b09af9
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcd8e1b09af9
  • 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 datastoresrp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ datastoresrp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

Copy link
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

Looking great so far! Thanks for this addition!

pkg/daprrp/datamodel/daprconfigurationstore.go Outdated Show resolved Hide resolved
pkg/daprrp/frontend/controller/types.go Outdated Show resolved Hide resolved
test/magpiego/server.go Outdated Show resolved Hide resolved
@radius-functional-tests
Copy link

radius-functional-tests bot commented Sep 10, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository SoTrx/radius
Commit ref f380b23
Unique ID funcc8e7f711ee
Image tag pr-funcc8e7f711ee
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • 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-funcc8e7f711ee
  • 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-funcc8e7f711ee
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcc8e7f711ee
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcc8e7f711ee
  • 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...
⌛ Starting datastoresrp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ datastoresrp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

Copy link
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

Left a nit

pkg/portableresources/handlers/util.go Outdated Show resolved Hide resolved
@lakshmimsft
Copy link
Contributor

lakshmimsft commented Sep 11, 2024

This is truly superb! Thank you @SoTrx for your contribution! 🔥

I have two questions.
@SoTrx , this is a new addition to Radius and we would need documentation on it in the docs repo. https://github.com/radius-project/docs so it goes out as a complete feature. (Samples is also a part of this but docs is needed at the very least.) Do you think you want to try submit a PR for it?

One question to the team @ytimocin , @rynowak related to this.
If I'm reading this right, https://github.com/dapr/dapr/blob/9591e5778c4e03587acabe35744770881a86c35f/charts/dapr/crds/components.yaml#L83-L86
, then metadata, version and type are required fields for all components. Is there a reason we have them as optional at our end?

@doc("The metadata for Dapr resource which must match the values specified in Dapr component spec")
metadata?: Record<MetadataValue>;
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-duplicate-property"
@doc("Dapr component type which must matches the format used by Dapr Kubernetes configuration format")
type?: string;
@doc("Dapr component version")
version?: string;

Was it intentional, say, for future flexibility or do we want to update it since it applies to all components. I can create a separate issue for it .

@radius-functional-tests
Copy link

radius-functional-tests bot commented Sep 11, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository SoTrx/radius
Commit ref 4d2c0df
Unique ID func30abc5c80e
Image tag pr-func30abc5c80e
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • 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-func30abc5c80e
  • 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-func30abc5c80e
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func30abc5c80e
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func30abc5c80e
  • 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 ucp-cloud functional tests...
⌛ Starting datastoresrp-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ datastoresrp-cloud functional tests succeeded
❌ corerp-cloud functional test failed. Please check the logs for more details
⌛ Starting corerp-cloud functional tests...
❌ corerp-cloud functional test failed. Please check the logs for more details
⌛ Starting corerp-cloud functional tests...
✅ corerp-cloud functional tests succeeded

Copy link
Contributor

@kachawla kachawla left a comment

Choose a reason for hiding this comment

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

Thank you @SoTrx! Can you please summarize proposed schema updates and user experience in the corresponding GitHub issue #7889?

@SoTrx
Copy link
Contributor Author

SoTrx commented Sep 12, 2024

@lakshmimsft I'll try to make a PR for the documentation.

@kachawla No problem

@kachawla
Copy link
Contributor

@lakshmimsft I'll try to make a PR for the documentation.

@kachawla No problem

Thank you, @SoTrx

SoTrx and others added 12 commits September 18, 2024 10:32
Co-authored-by: Yetkin Timocin <[email protected]>
Signed-off-by: SoTrx <[email protected]>
@radius-functional-tests
Copy link

radius-functional-tests bot commented Sep 18, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository SoTrx/radius
Commit ref e655e73
Unique ID funcd8f26c73e3
Image tag pr-funcd8f26c73e3
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • 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-funcd8f26c73e3
  • 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-funcd8f26c73e3
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funcd8f26c73e3
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funcd8f26c73e3
  • 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 datastoresrp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ datastoresrp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded

@lakshmimsft lakshmimsft merged commit a17f9cf into radius-project:main Sep 18, 2024
28 checks passed
@lakshmimsft
Copy link
Contributor

Thanks for your contribution again @SoTrx !!

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.

Implementation of Dapr Building Block: Configuration Store
5 participants