Skip to content

Conversation

@Varsius
Copy link
Collaborator

@Varsius Varsius commented Jan 12, 2026

This PR refactors the directory structure for filters/weighers of the pod pipeline to align with the nova and manila pipeline. Secondly, filters are added that implement the default Kubernetes behavior for hard taints, tolerations and affinities. Soft requirements regarding these behaviors, which would need to be implemented as weighers, are not included in this PR and are subject for future work.

Copy link
Member

@PhilippMatthes PhilippMatthes left a comment

Choose a reason for hiding this comment

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

Cool stuff!

case corev1.NodeSelectorOpGt:
return exists && nodeValue > req.Values[0]
case corev1.NodeSelectorOpLt:
return exists && nodeValue < req.Values[0]
Copy link
Member

Choose a reason for hiding this comment

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

Is this safe?

Comment on lines +30 to +32
if canScheduleOnNode(node, request.Pod) {
activations[node.Name] = 1.0
}
Copy link
Member

Choose a reason for hiding this comment

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

Since we're using a tanh activation function, your zero-activation would be 0.0. Zero-activation here means, it has no impact on the final result because tanh(0.0) = 0.0.

Copy link
Member

Choose a reason for hiding this comment

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

Technically, we're not too precise with the wording here. The activations map is actually a weights map which is going to be mapped to an activation by the activation function. We should rename this.

Copy link
Member

Choose a reason for hiding this comment

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

This was there before, I just came across this and wanted to leave this note.

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.

2 participants