Skip to content

chore: data catalog: create fe container for dataservices (OP-241)#2178

Open
assafgi wants to merge 10 commits intomainfrom
02-03-chore_data_catalog_create_fe_container_for_dataservices_op-241_
Open

chore: data catalog: create fe container for dataservices (OP-241)#2178
assafgi wants to merge 10 commits intomainfrom
02-03-chore_data_catalog_create_fe_container_for_dataservices_op-241_

Conversation

@assafgi
Copy link
Contributor

@assafgi assafgi commented Feb 3, 2026

No description provided.

@assafgi assafgi marked this pull request as ready for review February 3, 2026 08:43
@assafgi assafgi requested a review from a team as a code owner February 3, 2026 08:43
Copy link
Contributor Author

assafgi commented Feb 3, 2026


How to use the Graphite Merge Queue

Add the label main-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@graphite-app
Copy link

graphite-app bot commented Feb 3, 2026

Graphite Automations

"Add anton/matt/sergey/kristina as reviwers on operator PRs" took an action on this PR • (02/03/26)

2 reviewers were added to this PR based on Anton Bykov's automation.

@assafgi assafgi force-pushed the 02-03-chore_data_catalog_create_fe_container_for_dataservices_op-241_ branch 2 times, most recently from 58f3ee7 to c1c14a0 Compare February 3, 2026 09:07
Comment on lines 38 to 49
dataServicesContainers, err := discovery.GetClusterContainersByClusterUID(ctx, r.Manager.GetClient(), ownerUid, r.container.Namespace, weka.WekaContainerModeDataServices)
if err != nil {
return err
}

foundDataServicesNeighbor := false
for _, dsContainer := range dataServicesContainers {
if dsContainer.GetNodeAffinity() == nodeName {
foundDataServicesNeighbor = true
break
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can use this func from KubeService to get container on the exact node:

GetWekaContainersSimple(ctx context.Context, namespace, node string, labels map[string]string) ([]v1alpha1.WekaContainer, error)

@assafgi assafgi force-pushed the 02-03-chore_data_catalog_create_fe_container_for_dataservices_op-241_ branch 2 times, most recently from 462c5d0 to 9e9414f Compare February 3, 2026 20:21
@assafgi assafgi force-pushed the 02-03-chore_data_catalog_create_fe_container_for_dataservices_op-241_ branch from 59f5791 to ef78fbf Compare February 4, 2026 09:39
Comment on lines +49 to +58
// Check if sibling FE container already exists on the same node
// Note: We don't filter by node in the query because newly created containers
// don't have status.nodeAffinity set yet. Instead, we filter the results manually.
feContainers, err := r.KubeService.GetWekaContainersSimple(ctx, r.container.Namespace, "", map[string]string{
domain.WekaLabelClusterId: ownerUid,
domain.WekaLabelMode: weka.WekaContainerModeDataServicesFe,
})
if err != nil {
return err
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not to set nodeName as the filter (instead of empty line + filtering manually)?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants