Skip to content

feat: add datumctl config, clusters and context#120

Open
gianarb wants to merge 1 commit intomainfrom
feat/persistent-layer
Open

feat: add datumctl config, clusters and context#120
gianarb wants to merge 1 commit intomainfrom
feat/persistent-layer

Conversation

@gianarb
Copy link
Collaborator

@gianarb gianarb commented Mar 9, 2026

This commit contains the foundation of being able to connect to multiple
Datum clusters and to switch in between projects and orgs via contexts.

This PR at the time you run this new version of the datumctl will create the
configuration file without breaking compatibility with your current authorized
login.

Every time you run login it will check if it knows the server you are connecting
to, if not it will add it to the list and create a context for you to use.

commands

A couple of new commands related to context and clusters are available under config subcommand.

Now that authenticated user are related to context I don't think we need the auth list and even less the auth switch in order to avoid confusions so I removed them

Limitation:

Currently, we do not have a way to discriminate when to reach the organization
control plane or the project one. It means that we can not accept project AND
org into the same context, only one can be set. Right now we prioritize project
because most like it is the one you want to use for the most.

User who wants to quickly switch in between org and project needs to create
multiple context.

Fixes datum-cloud/enhancements#653

This commit contains the foundation of being able to connect to multiple
Datum clusters and to switch in between projects and orgs via contexts.
@gianarb gianarb force-pushed the feat/persistent-layer branch from 5d0143a to b7a94b1 Compare March 9, 2026 21:18
@gianarb gianarb requested a review from scotwells March 9, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

datumctl context support and persistent layer

1 participant