[ 
https://issues.apache.org/jira/browse/KNOX-3071?focusedWorklogId=938883&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-938883
 ]

ASF GitHub Bot logged work on KNOX-3071:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Oct/24 10:54
            Start Date: 18/Oct/24 10:54
    Worklog Time Spent: 10m 
      Work Description: hanicz opened a new pull request, #940:
URL: https://github.com/apache/knox/pull/940

   …ew create-list-alias command to create multiple aliases for multiple 
clusters and also list them.
   
   ## What changes were proposed in this pull request?
   
   This PR proposes a few changes to the KnoxCLI list-alias command and a 
completely new create-list-aliases command. usage was missing for 
BatchAliasCreateCommand in printKnoxShellUsage so I added that as well.
   
   With this change the list-alias command will be able to list for multiple 
clusters. The cluster names have to be concatenated by ':'. It is backward 
compatible with the current usage so it is able to list for a single cluster as 
well.
   Usage: list-alias --cluster1:cluster2:clusterN
   
   The new create-list-alias command can create multiple aliases for multiple 
clusters with a simple call and list them when they are created. An alias will 
be created for a cluster if it is listed before the cluster.
   
   Usage: create-list-aliases --alias alias1 --value value1 --alias alias2 
--value value2 --cluster cluster1 --alias alias3 --value value3 --cluster 
cluster2 --alias aliasN --value valueN --cluster clusterN
   
   In the above example alias1 and alias 2 will be created for cluster1, alias3 
for cluster2 and aliasN for clusterN. The --value arg is not required as it 
could be generated or the user will be prompt to provide it.
   
   ## How was this patch tested?
   
   I wrote new unit tests to cover the new functionalities and tested manually 
on my local computer.
   
   




Issue Time Tracking
-------------------

            Worklog Id:     (was: 938883)
    Remaining Estimate: 0h
            Time Spent: 10m

> Batch list-alias and new create-list-aliases KnoxCLI commands
> -------------------------------------------------------------
>
>                 Key: KNOX-3071
>                 URL: https://issues.apache.org/jira/browse/KNOX-3071
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: KnoxCLI
>    Affects Versions: 2.1.0
>            Reporter: Tamás Hanicz
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> New feature for list-alias KnoxCLI command. The user should be able to 
> provide multiple clusters concatenated by ':' and list the aliases for all of 
> them. 
> list-alias --cluster cluster1:cluster2:clusterN
> New create-list-aliases command that creates aliases on multiple clusters and 
> list them at the end.
> create-list-aliases --alias alias1 --value value1 --cluster cluster1 --alias 
> alias2 --value value2 --cluster2 --alias aliasN --value valueN --cluster 
> clusterN
> When there is a --cluster args every alias before it will be added to that 
> cluster.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to