Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwanath Hiremath <[email protected]>
  • Loading branch information
vishwahiremat committed Jul 25, 2024
1 parent 0a0b08e commit 6c60fb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/cmd/credential/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rad credential register azure sp --client-id <client id> --client-secret <client
rad credential register azure wi --client-id <client id> --tenant-id <tenant id>
# Register (Add or update) cloud provider credential for AWS with access key authentication.
rad credential register aws access-key --access-key-id <access-key-id> --secret-access-key <secret-access-key>
# Register (Add or update) cloud provider credential for AWS with IRSA.
# Register (Add or update) cloud provider credential for AWS with IRSA (IAM Roles for Service Accounts).
rad credential register aws irsa --iam-role <roleARN>
# Show cloud provider credential details for Azure
Expand Down
3 changes: 1 addition & 2 deletions pkg/cli/cmd/credential/register/aws/accesskey/accesskey.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ func (r *Runner) Validate(cmd *cobra.Command, args []string) error {
// Run runs the `rad credential register aws access-key` command.
//

// Run() registers an AWS credential with the given context and workspace, and returns an error if unsuccessful.
// Run registers an AWS credential with the given context and workspace, and returns an error if unsuccessful.
func (r *Runner) Run(ctx context.Context) error {

r.Output.LogInfo("Registering credential for %q cloud provider in Radius installation %q...", "aws", r.Workspace.FmtConnection())
client, err := r.ConnectionFactory.CreateCredentialManagementClient(ctx, *r.Workspace)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/cmd/credential/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ rad credential register azure sp --client-id <client id> --client-secret <client
rad credential register azure wi --client-id <client id> --tenant-id <tenant id>
# Register (Add or update) cloud provider credential for AWS with access key authentication.
rad credential register aws access-key --access-key-id <access-key-id> --secret-access-key <secret-access-key>
# Register (Add or update) cloud provider credential for AWS with IRSA.
rad credential register aws irsa --iam-role <roleARN>
# Register (Add or update) cloud provider credential for AWS with IRSA (IAM Roles for service Accounts).
rad credential register aws irsa --iam-role <roleARN>
`,
}

Expand Down

0 comments on commit 6c60fb1

Please sign in to comment.