openshift / ocm-container

Containerized environment for accessing OpenShift v4 clusters, packing necessary tools/scripts
Apache License 2.0
10 stars 63 forks source link

Add an option to log directly into a manager or service cluster #270

Open iamkirkbater opened 2 months ago

iamkirkbater commented 2 months ago

As an SRE I'd like to be able to pass a flag such as --manager or --service to ocm-container to have the logic for logging directly into a service or managment cluster baked into the tooling.

Ideally, if I were to run ocm-container -C $CLUSTER_ID --manager it would have the following environment available for me:

And if this were a classic ROSA cluster:

Essentially - the environment variables would be configured in a way similar to if you ran ocm-container -C $CLUSTER_ID, loaded into it and then ocm backplane login $CLUSTER_ID --manager from within the same container, so all of your env variable context is loaded for $CLUSTER_ID but you are just logged into the Management/Service Cluster.

clcollins commented 2 months ago

+1 totally in favor of this