moresandeep opened a new pull request #292: KNOX-2287 KnoxCLI convert topology to provider and descriptor URL: https://github.com/apache/knox/pull/292 ## What changes were proposed in this pull request? This PR proposes to add a KnoxCLI command to convert topology to provider and descriptor. ``` knoxcli.sh convert-topology --path "path/to/topology.xml" --provider-name my-provider.json [--descriptor-name my-descriptor.json] [--topology-name topologyName] [--output-path "path/to/configs/"] [--force] [--cluster clusterName] [--discovery-url url] [--discovery-user discoveryUser] [--discovery-pwd-alias discoveryPasswordAlias] [--discovery-type discoveryType] ``` _Options are as follows:_ **--path** (required) path to topology xml file **--provider-name** (required) name of the provider json config file (including .json extension) **--descriptor-name** (optional) name of descriptor json config file (including .json extension) **--topology-name** (optional) topology-name can be use instead of --path option, if used, KnoxCLI will attempt to find topology from deployed topologies. if not provided topology name will be used as descriptor name **--output-path** (optional) output directory to save provider and descriptor config files if not provided config files will be saved in appropriate Knox config directory **--force** (optional) force rewriting of existing files, if not used, command will fail when the configs files with same name already exist. **--cluster** (optional) cluster name, required for service discovery **--discovery-url** (optional) service discovery URL, required for service discovery **--discovery-user** (optional) service discovery user, required for service discovery **--discovery-pwd-alias** (optional) password alias for service discovery user, required for service discovery **--discovery-type** (optional) service discovery type, required for service discovery _Example_ ``` $knoxcli.sh convert-topology --path /Users/smore/Desktop/sandbox.xml --provider-name sandbox-provider.json --descriptor-name sandbox-descriptor.json Provider sandbox-provider.json and descriptor sandbox-descriptor.json generated for topology sandbox ``` ## How was this patch tested? This patch was locally tested
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
