-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into vishwahiremat/extend-secretstore-scope
Signed-off-by: Vishwanath Hiremath <[email protected]>
- Loading branch information
Showing
23 changed files
with
328 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This workflow warns and then closes PRs that have had no activity for 90 days. | ||
# | ||
# For more information, see: | ||
# https://github.com/actions/stale | ||
name: Close stale pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 18 * * *' # Run the workflow every day at 6PM UTC (10AM PST). | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: 'This pull request has been automatically marked as stale because it has been inactive for 90 days. Remove stale label or comment or this PR will be closed in 7 days.' | ||
stale-pr-label: 'stale' | ||
days-before-pr-stale: 90 # 3 months | ||
days-before-pr-close: 7 | ||
days-before-issue-stale: -1 | ||
days-before-issue-close: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- 'release/*' | ||
paths: | ||
- 'versions.yaml' | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
## Announcing Radius v0.30.0 | ||
|
||
Today we're happy to announce the release of Radius v0.30.0. Check out the [highlights](#highlights) below, along with the [full changelog](#full-changelog) for more details. | ||
|
||
We would like to extend our thanks to all the [new](#new-contributors) and existing contributors who helped make this release possible! | ||
|
||
## Intro to Radius | ||
|
||
If you're new to Radius, check out our website, [radapp.io](https://radapp.io), for more information. Also visit our [getting started guide](https://docs.radapp.io/getting-started/) to learn how to install Radius and create your first app. | ||
|
||
## Highlights | ||
|
||
### Terraform Recipe enhancements | ||
|
||
We’ve added a bunch of new supported features and scenarios for Terraform Recipes, including sub-module support, Git module source support, and version ranges. We’re actively working on additional features such as private modules and any provider. Stay tuned for updates! Learn more in [our docs](https://docs.radapp.io/guides/recipes/overview/). | ||
|
||
### Radius roadmap | ||
|
||
The Radius roadmap is now published at https://aka.ms/radius-roadmap, where you can keep track of all the major features and improvements we are tracking. Check it out and make sure to upvote and leave feedback on your favorites! | ||
|
||
### Introducing the Radius dashboard | ||
|
||
We’re excited to share a first look at a new experimental feature of Radius: the Radius dashboard! Our new dashboard allows you to interact with Radius environments, applications, and recipes from an easy-to-use graphical interface. Visit the [dashboard repo](https://github.com/radius-project/dashboard) to try it out today. | ||
|
||
## Breaking changes | ||
|
||
None | ||
|
||
## New contributors | ||
|
||
Welcome to our new contributors who have merged their first PR in this release! | ||
|
||
* @IvanJosipovic made their first contribution in https://github.com/radius-project/radius/pull/6996 | ||
* @gpltaylor made their first contribution in https://github.com/radius-project/radius/pull/6974 | ||
* @akshayrohilla made their first contribution in https://github.com/radius-project/radius/pull/7083 | ||
|
||
## Upgrading to Radius v0.30.0 | ||
|
||
During our preview stage, an upgrade to Radius v0.30.0 requires a full reinstallation of the Radius control-plane, rad CLI, and all Radius apps. Stay tuned for an in-place upgrade path in the future. | ||
|
||
1. Delete any environments you have created: | ||
```bash | ||
rad env delete <env-name> | ||
``` | ||
1. Uninstall the previous version of the Radius control-plane: | ||
```bash | ||
rad uninstall kubernetes | ||
``` | ||
1. Visit the [Radius installation guide](https://docs.radapp.io/getting-started/install/) to install the latest CLI, or download a binary below | ||
1. Install the latest version of the Radius control-plane: | ||
```bash | ||
rad install kubernetes | ||
``` | ||
|
||
## Full changelog | ||
|
||
* Remove copilot4prs by @sk593 in https://github.com/radius-project/radius/pull/6988 | ||
* Create 0.29.0 release by @nithyatsu in https://github.com/radius-project/radius/pull/6992 | ||
* fix: remove duplicate securityContext by @IvanJosipovic in https://github.com/radius-project/radius/pull/6996 | ||
* Get long-haul test cluster working by @ytimocin in https://github.com/radius-project/radius/pull/6936 | ||
* [Add] Adding ignore-not-found to the deletion of certificate in long haul test workflow by @ytimocin in https://github.com/radius-project/radius/pull/6999 | ||
* Improve error message under 401 condition with Azure ACR by @gpltaylor in https://github.com/radius-project/radius/pull/6974 | ||
* Remove skipped test by @kachawla in https://github.com/radius-project/radius/pull/6998 | ||
* Restore AWS S3 tests by @willdavsmith in https://github.com/radius-project/radius/pull/6993 | ||
* Enable CLI container port expose test by @youngbupark in https://github.com/radius-project/radius/pull/7000 | ||
* Enable Bicep recipe unit-test with fake registry server by @youngbupark in https://github.com/radius-project/radius/pull/7021 | ||
* Remove old issues workflow by @AaronCrawfis in https://github.com/radius-project/radius/pull/7020 | ||
* chore: replace issue templates with forms by @lechnerc77 in https://github.com/radius-project/radius/pull/6982 | ||
* Updating the caBundle for the controller webhook by @ytimocin in https://github.com/radius-project/radius/pull/7022 | ||
* Updating the Radius installation step of the long-haul workflow by @ytimocin in https://github.com/radius-project/radius/pull/7008 | ||
* Add Functional Test for Bicep Recipe Context Parameter by @kachawla in https://github.com/radius-project/radius/pull/7041 | ||
* Add event logging for Terraform recipe publishing by @sk593 in https://github.com/radius-project/radius/pull/7028 | ||
* Updating delete confirmation message by @ytimocin in https://github.com/radius-project/radius/pull/7049 | ||
* Avoid docker debian image ratelimitting issue in long running test by @youngbupark in https://github.com/radius-project/radius/pull/7067 | ||
* Make the properties field of tracked resource required by @vinayada1 in https://github.com/radius-project/radius/pull/6889 | ||
* Add check for Terraform submodules by @sk593 in https://github.com/radius-project/radius/pull/7013 | ||
* Support direct route connection in AppGraph by @youngbupark in https://github.com/radius-project/radius/pull/7072 | ||
* Fix connection direction by @youngbupark in https://github.com/radius-project/radius/pull/7076 | ||
* Support routes.*.destination of gateway for App Graph by @youngbupark in https://github.com/radius-project/radius/pull/7079 | ||
* Remove rad app switch reference from the error message by @akshayrohilla in https://github.com/radius-project/radius/pull/7083 | ||
* Fix release race condition by @willdavsmith in https://github.com/radius-project/radius/pull/6995 | ||
* Update versions.yaml for 0.30 rc by @vinayada1 in https://github.com/radius-project/radius/pull/7091 | ||
* Fix syntax error in release.yaml workflow by @willdavsmith in https://github.com/radius-project/radius/pull/7092 | ||
* Re-enable skipped test `Test_RecipeCommands` by @sk593 in https://github.com/radius-project/radius/pull/7080 | ||
* Create RC2 release version by @vinayada1 in https://github.com/radius-project/radius/pull/7093 | ||
* Add error handling in case release branch doesn't exist yet by @willdavsmith in https://github.com/radius-project/radius/pull/7094 | ||
* update versions file for rc3 release by @vinayada1 in https://github.com/radius-project/radius/pull/7096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/* | ||
Copyright 2024 The Radius Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package cli | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
"strings" | ||
"testing" | ||
|
||
"github.com/radius-project/radius/pkg/cli/clients" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func Test_RequireResourceType(t *testing.T) { | ||
|
||
supportedTypes := []string{} | ||
|
||
for _, resourceType := range clients.ResourceTypesList { | ||
supportedType := strings.Split(resourceType, "/")[1] | ||
supportedTypes = append(supportedTypes, supportedType) | ||
} | ||
|
||
resourceTypesErrorString := strings.Join(supportedTypes, "\n") | ||
|
||
tests := []struct { | ||
name string | ||
args []string | ||
want string | ||
wantErr error | ||
}{ | ||
{ | ||
name: "No arguments", | ||
args: []string{}, | ||
want: "", | ||
wantErr: errors.New("no resource type provided"), | ||
}, | ||
{ | ||
name: "Supported resource type", | ||
args: []string{"mongoDatabases"}, | ||
want: "Applications.Datastores/mongoDatabases", | ||
wantErr: nil, | ||
}, | ||
{ | ||
name: "Multiple resource types", | ||
args: []string{"secretStores"}, | ||
want: "", | ||
wantErr: fmt.Errorf("multiple resource types match 'secretStores'. Please specify the full resource type and try again:\n\nApplications.Dapr/secretStores\nApplications.Core/secretStores\n"), | ||
}, | ||
{ | ||
name: "Unsupported resource type", | ||
args: []string{"unsupported"}, | ||
want: "", | ||
wantErr: fmt.Errorf("'unsupported' is not a valid resource type. Available Types are: \n\n" + resourceTypesErrorString + "\n"), | ||
}, | ||
} | ||
|
||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
got, err := RequireResourceType(tt.args) | ||
if len(tt.want) > 0 { | ||
require.Equal(t, tt.want, got) | ||
} else { | ||
require.Equal(t, tt.wantErr, err) | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.