-
Notifications
You must be signed in to change notification settings - Fork 48
[slice] Create Slice for each PodSet in Workload. #520
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
Conversation
91c16b1
to
c75be04
Compare
7fd40a4
to
d4dad14
Compare
d4dad14
to
a8e0871
Compare
@gabesaba PTAL |
a8e0871
to
faaacef
Compare
38c1d4f
to
81637a6
Compare
fe3d460
to
cd17118
Compare
cd17118
to
bad2360
Compare
7e78b87
to
dd1f55e
Compare
dd1f55e
to
c2bc1ba
Compare
c2bc1ba
to
e4f97e2
Compare
e4f97e2
to
504a983
Compare
/lgtm |
capacity := len(wl.Status.Admission.PodSetAssignments) - len(slicesByName) | ||
if capacity < 0 { | ||
capacity = 0 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would this ever be negative? and this is just for sizing the slice? I think i'm in favor of deleting this logic, but we can do it in a follow-up PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be negative if the user manually creates extra Slices.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subblockLevelIndex := topology.SubblockLevelIndex(&psa) | ||
for _, domain := range psa.TopologyAssignment.Domains { | ||
nodeSelectors.Insert(domain.Values[subblockLevelIndex]) | ||
sliceName := core.SliceName(wl.Name, psa.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In follow-up PR:
Should we use IsRelevantPodTemplateSpec
in this loop? Otherwise, we may try to create a slice for an invalid podset. Can you add a test for this please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #573.
lgtm, thank you! Let's address the last comments in a follow-up PR. |
Fixes / Features