Add PostgreSQL to the default Kubernetes Recipe Pack - #12755
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the CLI’s default Kubernetes recipe pack (created by rad install kubernetes) to include the Radius.Data/postgreSqlDatabases core type, sourcing the recipe from the shared ghcr.io/radius-project/kube-recipes registry using the existing channel-aware tag resolution logic.
Changes:
- Add
Radius.Data/postgreSqlDatabasesto the core default recipe definitions with an OCI source of.../postgresqldatabases:<resolved-tag>. - Update unit tests to expect the additional default core recipe entry and validate it is present in the generated default recipe pack resource.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pkg/cli/recipepack/recipepack.go | Adds PostgreSQL database recipe entry to the core default recipe definitions with channel-aware tag resolution. |
| pkg/cli/recipepack/recipepack_test.go | Updates tests for the new core recipe count/type list and asserts the PostgreSQL recipe is included in the default recipe pack resource. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12755 +/- ##
==========================================
- Coverage 59.91% 59.90% -0.02%
==========================================
Files 775 775
Lines 46305 46316 +11
==========================================
- Hits 27745 27744 -1
- Misses 18560 18572 +12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
18a126f to
d1606b0
Compare
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
d1606b0 to
71f6ba8
Compare
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
Signed-off-by: Will Smith <willdavsmith@gmail.com>
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
Radius functional test overviewClick here to see the test run details
Test Status⌛ Building Radius and pushing container images for functional tests... |
d76e986
Summary
Radius.Data/postgreSqlDatabasesto the default Recipe Pack created byrad install kubernetesghcr.io/radius-project/kube-recipes/postgresqldatabasesusing the standard channel-aware tag resolutioncorerp-noncloudE2E test that deploys PostgreSQL without an explicit Recipe and validates the Recipe-provisioned Pod, Deployment, and ServiceFixes: radius-project/resource-types-contrib#276
Testing
go test ./pkg/cli/recipepack ./test/validationgo test ./test/functional-portable/corerp/noncloud/resources -run '^$'~/.rad/bin/bicep build test/functional-portable/corerp/noncloud/resources/testdata/corerp-resources-postgresqldatabase.bicep --stdoutgofmtgit diff --checkThe targeted E2E requires the PR CI Kubernetes environment and is covered by the
corerp-noncloudfunctional test job.