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

How to setup astartectl contexts? #135

Open
davidebriani opened this issue Mar 29, 2021 · 1 comment
Open

How to setup astartectl contexts? #135

davidebriani opened this issue Mar 29, 2021 · 1 comment
Labels
blocking This issue or pull request blocks a release (e.g. API change, major bug) question Further information is requested
Milestone

Comments

@davidebriani
Copy link

I am trying to setup a context for astartectl to use with Astarte in 5 minutes guide, but I am not sure about the correct procedure to do so. After following that guide I now have keys for housekeeping and the test realm, so this is what I am trying:

$ astartectl version
astartectl 1.0.0-beta.2
$ astartectl config clusters create testcluster --housekeeping-url http://localhost:4001/ --housekeeping-key compose/astarte-keys/housekeeping_private.pem
Cluster testcluster saved successfully
$ astartectl config contexts create testcontext --cluster testcluster --realm-name test --realm-private-key test_private.pem
warn: Error while loading configuration: Config File "astartectl" Not Found in "[/home/davide/.config/astarte]"
Context testcontext saved successfully
$ astartectl config contexts list
warn: Error while loading configuration: Config File "astartectl" Not Found in "[/home/davide/.config/astarte]"
file does not exist
$ astartectl config set-current-context testcontext
warn: Error while loading configuration: Config File "astartectl" Not Found in "[/home/davide/.config/astarte]"
file does not exist
$ astartectl version
warn: Error while loading configuration: Config File "astartectl" Not Found in "[/home/davide/.config/astarte]"
astartectl 1.0.0-beta.2

It seems there's some trouble with config files, however a couple of files were created:

$ cd $HOME && ls .config/astarte/*
.config/astarte/clusters:
testcluster.yaml

.config/astarte/contexts:
testcontext.yaml

Not sure if this is the supposed way to setup a context, maybe issue #107 is related.

@davidebriani davidebriani added the question Further information is requested label Mar 29, 2021
@davidebriani davidebriani added the blocking This issue or pull request blocks a release (e.g. API change, major bug) label Mar 29, 2021
@Annopaolo Annopaolo moved this to Unscheduled in astartectl Dec 14, 2022
@Annopaolo Annopaolo added this to the v23.05 milestone Dec 14, 2022
@Annopaolo
Copy link
Collaborator

Astartectl v22.11.00 gets rid of the unhelpful warning messages. However, further documentation on contexts and clusters will be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking This issue or pull request blocks a release (e.g. API change, major bug) question Further information is requested
Projects
Status: Unscheduled
Development

No branches or pull requests

2 participants