Skip to content

Commit

Permalink
add IRSA credential type (#7708)
Browse files Browse the repository at this point in the history
# Description

Add model changes for supporting AWS IRSA credential

## Type of change

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

#7618

#

Partially Fixes: #7618

---------

Signed-off-by: nithyatsu <nithyasu@microsoft.com>
  • Loading branch information
nithyatsu authored and sk593 committed Jul 22, 2024
1 parent 339ebf8 commit c4c4ef3
Show file tree
Hide file tree
Showing 27 changed files with 686 additions and 20 deletions.
3 changes: 3 additions & 0 deletions pkg/ucp/api/v20231001preview/zz_generated_constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/ucp/api/v20231001preview/zz_generated_interfaces.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 24 additions & 1 deletion pkg/ucp/api/v20231001preview/zz_generated_models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions pkg/ucp/api/v20231001preview/zz_generated_models_serde.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"operationId": "AwsCredentials_CreateOrUpdate",
"title": "Create or update an AWS credential",
"title": "Create or update an AWS AccessKey credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"operationId": "AwsCredentials_Delete",
"title": "Delete an AWS AccessKey credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "awscloud",
"credentialName": "default"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"operationId": "AwsCredentials_Get",
"title": "Get an AWS credential",
"title": "Get an AWS AccessKey credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"operationId": "AwsCredentials_List",
"title": "List AWS credentials",
"title": "List AWS AccessKey credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"operationId": "AwsCredentials_Update",
"title": "Update an AWS credential",
"title": "Update an AWS AccessKey credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"operationId": "AwsCredentials_CreateOrUpdate",
"title": "Create or update an AWS IRSA credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "aws",
"credentialName": "default",
"Credential": {
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleARN": "enterRoleARN",
"storage": {
"kind": "Internal"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleARN": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
},
"201": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleARN": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"operationId": "AwsCredentials_Delete",
"title": "Delete an AWS credential",
"title": "Delete an AWS IRSA credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"operationId": "AwsCredentials_Get",
"title": "Get an AWS IRSA credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "awscloud",
"credentialName": "default"
},
"responses": {
"200": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"operationId": "AwsCredentials_List",
"title": "List AWS IRSA credentials",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "awscloud"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"operationId": "AwsCredentials_Update",
"title": "Update an AWS IRSA credential",
"parameters": {
"api-version": "2023-10-01-preview",
"planeType": "aws",
"planeName": "aws",
"credentialName": "default",
"Credential": {
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "IRSA",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
},
"201": {
"body": {
"id": "/planes/AWS/aws/providers/System.AWS/credentials/default",
"name": "default",
"type": "System.AWS/credentials",
"location": "us-west-2",
"properties": {
"kind": "AccessKey",
"roleArn": "enterRoleARN",
"storage": {
"kind": "Internal",
"secretName": "aws-awscloud-default"
}
}
}
}
}
}
Loading

0 comments on commit c4c4ef3

Please sign in to comment.