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

control-service: Add GraphQL read from DB #2837

Merged
merged 6 commits into from
Oct 27, 2023

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented Oct 25, 2023

Currently, when using the GraphQL API, the data job deployment data is read from the kubernetes
cronjobs. This works fine in general, but it also means that the kubernetes resources become the
single point of truth, which is not ideal.

As part of VEP-2272, the deployment information is moved to the DB, which improves speed and
reliability. This means that we need a way to read data from the DB, instead of the kubernetes.

This change adds support for reading deployment data from the database when using the GrapgQL
API. The option to read from the k8s remains.

Testing Done: Added test.

Copy link
Collaborator

@murphp15 murphp15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@doks5 doks5 force-pushed the person/andonova/graphql-read-update branch 2 times, most recently from b00dd5d to 8897ff2 Compare October 26, 2023 20:30
doks5 and others added 5 commits October 27, 2023 10:31
TODO

Signed-off-by: Andon Andonov <andonova@vmware.com>
Currently, when using the GraphQL API, the data job deployment data is read from the kubernetes
cronjobs. This works fine in general, but it also means that the kubernetes resources become the
single point of truth, which is not ideal.

As part of VEP-2272, the deployment information is moved to the DB, which improves speed and
reliability. This means that we need a way to read data from the DB, instead of the kubernetes.

This change adds support for reading deployment data from the database when using the GrapgQL
API. The option to read from the k8s remains.

Testing Done: Added test.

Signed-off-by: Andon Andonov <andonova@vmware.com>
@doks5 doks5 force-pushed the person/andonova/graphql-read-update branch from cd6bf6c to 37c4b6a Compare October 27, 2023 07:31
@doks5 doks5 force-pushed the person/andonova/graphql-read-update branch from 37c4b6a to 2e365d1 Compare October 27, 2023 08:50
@doks5 doks5 merged commit b4220f6 into main Oct 27, 2023
10 checks passed
@doks5 doks5 deleted the person/andonova/graphql-read-update branch October 27, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants