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

Pagination causing Dev Recipes to not be installed and Controller Pod permission fix #6466

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

ytimocin
Copy link
Contributor

@ytimocin ytimocin commented Oct 13, 2023

Description

Bugs fixed:

  1. Pagination causing Dev Recipes to not be installed
  2. Controller Pod permission fix

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).

Fixes: #6464 #6465

Auto-generated summary

🤖 Generated by Copilot at d657892

Summary

🚀🐛📝

This pull request makes some formatting and stylistic improvements to the .vscode/launch.json and the docs/contributing files. It also fixes a bug in the pkg/cli/cmd/radinit/recipe.go file that prevented some recipes from being fetched from the registry. Additionally, it updates the RBAC rules in the deploy/Chart/templates/controller/rbac.yaml file to match the new domain name of the Radius CRDs.

Sing, O Muse, of the valiant deeds of the Rad app developers
Who, with skill and wisdom, updated the apiGroups of their CRDs
And who, with cunning and craft, fixed the bug in the GetDevRecipes function
And who, with care and grace, polished the files of their code and docs

Walkthrough

  • Align RBAC rules with new CRD domain name (link)
  • Fix bug where some recipes were not fetched from registry (link)
  • Add trailing comma to JSON array for consistency and ease of editing (link)
  • Remove empty line and trailing whitespace from files (link, link)
  • Add angle brackets around URLs in Markdown file (link)

@ytimocin ytimocin requested review from a team as code owners October 13, 2023 03:21
@github-actions
Copy link

github-actions bot commented Oct 13, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6466/merge
Unique ID e464116715
Image tag pr-e464116715
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location radiusdev.azurecr.io/test/functional/shared/recipes/<name>:pr-e464116715
  • 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-e464116715
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-e464116715
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-e464116715
  • deployment-engine test image location: radius.azurecr.io/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 datastoresrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
✅ samples functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ ucp functional tests succeeded
✅ msgrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

@github-actions
Copy link

Test Results

3 006 tests  ±0   2 997 ✔️ ±0   2m 41s ⏱️ +18s
   256 suites ±0          9 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit d657892. ± Comparison against base commit 5756b33.

This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/24196a71-1743-4feb-acf9-eb8e22e76944
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/24196a71-1743-4feb-acf9-eb8e22e76944#01
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/a66fe385-4d59-4e15-8f47-3f9a1578a1b8
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/a66fe385-4d59-4e15-8f47-3f9a1578a1b8#01

@github-actions
Copy link

66.5

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 66.5 %
  • main branch coverage: 66.5 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@sk593 sk593 merged commit af53d20 into main Oct 13, 2023
27 checks passed
@sk593 sk593 deleted the ytimocin/paginationErrorDevRecipes branch October 13, 2023 16:27
sk593 pushed a commit that referenced this pull request Oct 13, 2023
… permission fix (#6466)

# Description

Bugs fixed:
1. Pagination causing Dev Recipes to not be installed
2. Controller Pod permission fix

## Type of change
- This pull request fixes a bug in Radius and has an approved issue
(issue link required).

Fixes: #6464 #6465

## Auto-generated summary

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at d657892</samp>

### Summary
🚀🐛📝

<!--
1. 🚀 - This emoji represents the functional change to the RBAC rules,
which aligns them with the new domain name of the CRDs. This is a
significant change that affects the authorization of the controller and
the custom resources. The rocket emoji conveys the idea of launching or
deploying something new or updated.
2. 🐛 - This emoji represents the functional change to the recipe
fetching logic, which fixes a bug that prevented some recipes from being
retrieved. This is a change that improves the functionality and
reliability of the CLI. The bug emoji conveys the idea of fixing or
squashing a bug or an issue.
3. 📝 - This emoji represents the formatting and stylistic changes to the
launch.json and contributing-code-controlplane-locally.md files. These
are changes that do not affect the functionality or behavior of the
code, but rather improve its readability and consistency. The memo emoji
conveys the idea of writing or editing something, such as documentation
or configuration.
-->
This pull request makes some formatting and stylistic improvements to
the `.vscode/launch.json` and the `docs/contributing` files. It also
fixes a bug in the `pkg/cli/cmd/radinit/recipe.go` file that prevented
some recipes from being fetched from the registry. Additionally, it
updates the RBAC rules in the
`deploy/Chart/templates/controller/rbac.yaml` file to match the new
domain name of the Radius CRDs.

> _Sing, O Muse, of the valiant deeds of the Rad app developers_
> _Who, with skill and wisdom, updated the `apiGroups` of their CRDs_
> _And who, with cunning and craft, fixed the bug in the `GetDevRecipes`
function_
> _And who, with care and grace, polished the files of their code and
docs_

### Walkthrough
* Align RBAC rules with new CRD domain name
([link](https://github.com/radius-project/radius/pull/6466/files?diff=unified&w=0#diff-0eb83f283dad161ea34486e10ead98d0c74fcaa93a13e8d182113ebb8de66c63L36-R36))
* Fix bug where some recipes were not fetched from registry
([link](https://github.com/radius-project/radius/pull/6466/files?diff=unified&w=0#diff-8d95f3c1fe28429c99ace05511baa39ad8209147381755da6007c8781ed17be2L66-R78))
* Add trailing comma to JSON array for consistency and ease of editing
([link](https://github.com/radius-project/radius/pull/6466/files?diff=unified&w=0#diff-bd5430ee7c51dc892a67b3f2829d1f5b6d223f0fd48b82322cfd45baf9f5e945L86-R91))
* Remove empty line and trailing whitespace from files
([link](https://github.com/radius-project/radius/pull/6466/files?diff=unified&w=0#diff-bd5430ee7c51dc892a67b3f2829d1f5b6d223f0fd48b82322cfd45baf9f5e945L7),
[link](https://github.com/radius-project/radius/pull/6466/files?diff=unified&w=0#diff-9e2fd80b379a42830faf06edccddb5228ec9ade05d089345244394619fb9e805L17-R17))
* Add angle brackets around URLs in Markdown file
([link](https://github.com/radius-project/radius/pull/6466/files?diff=unified&w=0#diff-9e2fd80b379a42830faf06edccddb5228ec9ade05d089345244394619fb9e805L30-R37))

(cherry picked from commit af53d20)
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.

Repository pagination blocks dev recipe installation
3 participants