-
Notifications
You must be signed in to change notification settings - Fork 44
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
Applying the configuration through the Airy controller #2756
Comments
After internal discussions, there are two ways how we can approach this issue:
As we see the first option as a more long-term option, for now we will do the second option in order to remove the dependence of the Airy CLI on Kubernetes. The controller will have no state, the airy.yaml will be saved in a configMap, from where it will also be retrieved. We would need to be able to send the following request, to send the
Then we need to impelment this in the This endpoint should be made functional once the dependent authentication issue is resolved. We will need an option to also retrieve the current |
To get the API proposal in the format of our docs I would propose something like this:
{
"data": "{stringified airy yaml}"
} |
Currently the
On the long run, I see the As for the values in the
In that sense was thinking to make it possible to now apply the configuration using a binary transfer of a YAML file for now and at the same time through JSON. The YAML should work only temporary while we maintain the legacy Eventually, configuration should be applied only through JSON this will be handled For example we would need to post this:
as equivalent to this:
As how the applying of the configuration works at the moment, it doesn't matter if we apply only one component at a time, or all at once. That is good I think for the frontend, as users would configure one component/connector at a time. To apply only one component, the controller can be made to accept only:
and apply the configuration only for that component, without removing the configuration of the others. I propose that we do it like this adding one more endpoint for DELETE-ing a configuration for a component, which will result in deleting the configmap and deactivating the component. |
I would suggest to just send the |
I think we are using the |
Then I'd suggest that we go straight for the JSON API so that we have to maintain fewer endpoints and follow our API conventions. Adding the |
Already done. |
We need to be able to do
airy config apply
or use some other flag to apply the configuration through theairy-controller
and not directly to Kubernetes.If the controller exposes an endpoint to create/read/update/delete configuration, then we can also apply configuration for the sources and other components through the UI.
Depends on #2755 .
The text was updated successfully, but these errors were encountered: