Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Backend abstraction #236

Merged
merged 18 commits into from
Jun 1, 2022
Merged

Conversation

jakub-dzon
Copy link
Collaborator

@jakub-dzon jakub-dzon commented May 25, 2022

This PR refactors the Edge API code to allow us to add another data (EdgeDevice, EdgeWorkload, all of them) source.

New data source (Backend) should implement the Backend interface to support current behavior of our Yggdrasil-facing API.

Existing data source - CRD-based etcd storage is provided by the backend struct. That part should most likely be refactored further to use our generated clients/informers/listers.

When more data sources are implemented, the decision on which to use will belong to the backend.factory - probably based on env variables provided by the user to the flotta-edge-api pod.

@jakub-dzon jakub-dzon force-pushed the backend-abstraction branch 3 times, most recently from 7a44c0f to d712fed Compare May 27, 2022 10:44
@jakub-dzon jakub-dzon changed the title [WIP] Backend abstraction Backend abstraction May 27, 2022
@jakub-dzon jakub-dzon marked this pull request as ready for review May 27, 2022 12:58
@machacekondra
Copy link
Collaborator

/test unit-fast

@jakub-dzon jakub-dzon changed the title Backend abstraction [WIP] Backend abstraction May 30, 2022
@jakub-dzon jakub-dzon marked this pull request as draft May 30, 2022 10:46
@jakub-dzon
Copy link
Collaborator Author

Back to draft, as I need to apply a handful of suggestions from @masayag.

@jakub-dzon jakub-dzon force-pushed the backend-abstraction branch 2 times, most recently from 4b18562 to 8891e25 Compare May 30, 2022 14:38
@jakub-dzon jakub-dzon changed the title [WIP] Backend abstraction Backend abstraction May 30, 2022
@jakub-dzon jakub-dzon marked this pull request as ready for review May 30, 2022 14:48
@jakub-dzon jakub-dzon force-pushed the backend-abstraction branch from 00cd251 to 7068af9 Compare May 31, 2022 11:22
@jakub-dzon jakub-dzon requested a review from masayag May 31, 2022 12:39
@jakub-dzon jakub-dzon requested a review from masayag May 31, 2022 15:13
Jakub Dzon added 18 commits June 1, 2022 14:24
Create API definition

Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
Signed-off-by: Jakub Dzon <[email protected]>
@jakub-dzon jakub-dzon force-pushed the backend-abstraction branch from 3c65bf3 to 2055fba Compare June 1, 2022 12:24
@openshift-ci openshift-ci bot removed the lgtm label Jun 1, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 1, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gabriel-farache, jakub-dzon, jordigilh, masayag, pkliczewski

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jordigilh jordigilh merged commit 3c8fb52 into project-flotta:main Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants