apac-mcm-aiops-asset / mcm-aiops-gitops

Apache License 2.0
6 stars 1 forks source link

Bootstrap helper CLI #5

Open rampadc opened 2 years ago

rampadc commented 2 years ago

Develop a otp CLI to setup hub clusters, handle configurations and bootstrap the cluster.

Usage 1: Interactive prompting

$ otp setup hub-cluster
Setup hub cluster...

> Create new repositories from templates? (Yn) Y
> What's your IBM Entitlement Key? ey...

[more text and logging here]

Usage 2: Command-line

$ otp setup hub-cluster --ibm-entitlement-key ey... --revision example --org mcm...

The CLI should save configurations into a config file in the same folder as when the otp command is run so they can be checked into a repo, with the exception of any secrets.

rampadc commented 2 years ago

Proposing the use of Typer and OpenShift Python client libraries, or Cobra and OpenShift Go client libraries