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

Feat/cluster processing #584

Merged
merged 10 commits into from
Feb 17, 2023
Merged

Feat/cluster processing #584

merged 10 commits into from
Feb 17, 2023

Conversation

Despire
Copy link
Contributor

@Despire Despire commented Feb 16, 2023

closes #477

This PR implements a per-cluster processing of the config. Since while building the cluster we also need the loadbalancers at some points I didn't seperate the workflow for Lbs from the kubernetes clusters.

The idea is that everything a cluster needs during a workflow execution is stored in the BuildContext. After a successfull workflow the changes made within that context are then propagated back

To be able to process the cluster individually I had to create another "view" that would just aggregate the data per cluster thus the ClusterView struct

Any changes made are than propagated back to the config and saved to the DB

Copy link
Contributor

@MiroslavRepka MiroslavRepka left a comment

Choose a reason for hiding this comment

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

LGTM, great job @Despire! I left some comments, just minor changes if anything.

proto/ansibler.proto Outdated Show resolved Hide resolved
proto/ansibler.proto Outdated Show resolved Hide resolved
proto/terraformer.proto Outdated Show resolved Hide resolved
proto/terraformer.proto Outdated Show resolved Hide resolved
proto/ansibler.proto Outdated Show resolved Hide resolved
services/builder/cluster_view.go Show resolved Hide resolved
services/builder/utils.go Show resolved Hide resolved
services/ansibler/server/nodeRequirments.go Outdated Show resolved Hide resolved
@Despire Despire added this pull request to the merge queue Feb 17, 2023
Merged via the queue into master with commit 5613ea4 Feb 17, 2023
@Despire Despire deleted the feat/cluster-processing branch February 17, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants