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

Endpoint for retrieving the current configuration from the airy-controller #3130

Closed
ljupcovangelski opened this issue May 3, 2022 · 3 comments · Fixed by #3177
Closed

Endpoint for retrieving the current configuration from the airy-controller #3130

ljupcovangelski opened this issue May 3, 2022 · 3 comments · Fixed by #3177

Comments

@ljupcovangelski
Copy link
Contributor

We need an endpoint on the airy-controller from where we can retrieve the current configuration from the Airy Core instance.

The following should be made possible on the airy-controller side:

curl -X GET -H "Content-Type: application/json" http://airy.core/controller/config

Then we need to implement this in the Airy CLI. When running airy config we should write the configuration to an airy.yaml file in the workspace.

Related to #2756

@ljupcovangelski
Copy link
Contributor Author

Related to the authentication issue, the URI of the service for now should be cluster.get.

curl -X GET -H "Content-Type: application/json" http://airy.core/cluster.get

cluster.apply will be used for applying the configuration.

@ljupcovangelski
Copy link
Contributor Author

The CLI needs to access the information from the endpoint and not through the Kubernetes API.
This is because we want to make the CLI independent of Kubernetes.

@ljupcovangelski
Copy link
Contributor Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants