Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands for managing RHOSR instance settings #1650

Closed
EricWittmann opened this issue Jul 15, 2022 · 3 comments · Fixed by #1677
Closed

Add commands for managing RHOSR instance settings #1650

EricWittmann opened this issue Jul 15, 2022 · 3 comments · Fixed by #1677
Assignees
Labels

Comments

@EricWittmann
Copy link
Contributor

Feature or problem description

Service Registry supports some instance-level configuration options that Admin users of the instance can view and modify. Here is the current Settings page in the UI that supports this functionality:

image

It would be useful to allow these settings to be managed via the CLI as well.

Proposed solution

Add a new service-registry setting command in rhoas to support managing the instance level configuration properties. For example, today we have this:

Manage and interact with your Service Registry instances directly from the command line.

Create new Service Registry instances and interact with them by adding schema and API artifacts and downloading them to your computer.

Commands are divided into the following categories:

* Instance management commands: create, list, and so on
* Commands executed on selected instance: artifacts
* "use" command that selects the current instance

Usage:
  rhoas service-registry [command]

Examples:
## Create Service Registry instance
rhoas service-registry create --name myregistry

## List Service Registry instances
rhoas service-registry list


Available Commands:
  artifact    Manage Service Registry artifacts
  create      Create a Service Registry instance
  delete      Delete a Service Registry instance
  describe    Describe a Service Registry instance
  list        List Service Registry instances
  role        Service Registry role management
  rule        Manage artifact rules in a Service Registry instance
  use         Use a Service Registry instance

Global Flags:
  -h, --help      Show help for a command
  -v, --verbose   Enable verbose mode

Use "rhoas service-registry [command] --help" for more information about a command.

I suggest we add a new setting command to the above list, with a description of something like Configure settings for a Service Registry instance.

This new setting command group would have two sub-commands:

  • list : List current configuration settings
  • set : Set the value of a configuration setting

The list command would simply display the current list of configuration settings in a standard table format.

The set command would take a configuration property name and new value and make that change in the instance.

@EricWittmann EricWittmann added the enhancement New feature or request label Jul 15, 2022
@EricWittmann
Copy link
Contributor Author

Ping @SafarMirek

@wtrocki
Copy link
Collaborator

wtrocki commented Jul 18, 2022

@dimakis to post update when new SDK is ready.

@dimakis
Copy link
Contributor

dimakis commented Jul 19, 2022

the updated SDKs have now been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants