keikoproj / manager

Multi K8s cluster Namespace Management
Apache License 2.0
9 stars 3 forks source link

CLI command for cluster registration #5

Closed mnkg561 closed 4 years ago

mnkg561 commented 4 years ago

Is this a BUG REPORT or FEATURE REQUEST?: FEATURE REQUEST

What happened: Provide a cli to the users for automating cluster registration process. CLI should be able to create

  1. Service Account
  2. ClusterRole
  3. ClusterRoleBinding

in the managed cluster and extract ServiceAccount Token secret and pass it on to the manager-API server.

What you expected to happen: It should be one simple command in the cli to add managed cluster.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: Argoproj does similar thing. we just need to make sure that approach works for keiko manager too.

Environment:

Other debugging information (if applicable):

- controller logs:

$ kubectl logs