Skip to content

Add proposal for PodMarker #704

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

veophi
Copy link
Member

@veophi veophi commented Aug 12, 2021

Signed-off-by: veophi [email protected]

Ⅰ. Describe what this PR does

Add proposal for PodMarker

Ⅱ. Does this pull request fix one issue?

fixes #640

@kruise-bot kruise-bot requested review from Fei-Guo and FillZpp August 12, 2021 08:03
@kruise-bot kruise-bot added the size/L size/L: 100-499 label Aug 12, 2021
@veophi veophi force-pushed the podmarker-proposal branch from 54d25ce to 093378c Compare August 12, 2021 08:05
@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2021

Codecov Report

Merging #704 (f33c6dd) into master (34c1e98) will decrease coverage by 0.02%.
The diff coverage is n/a.

❗ Current head f33c6dd differs from pull request most recent head c8ac4cc. Consider uploading reports for the commit c8ac4cc to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #704      +/-   ##
==========================================
- Coverage   49.69%   49.67%   -0.03%     
==========================================
  Files         107      107              
  Lines        9773     9773              
==========================================
- Hits         4857     4855       -2     
- Misses       4202     4203       +1     
- Partials      714      715       +1     
Flag Coverage Δ
unittests 49.67% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/controller/uniteddeployment/revision.go 66.15% <0.00%> (-1.54%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34c1e98...c8ac4cc. Read the comment docs.

@veophi veophi force-pushed the podmarker-proposal branch 3 times, most recently from 3e20894 to f8e0c02 Compare August 13, 2021 02:39
@veophi veophi force-pushed the podmarker-proposal branch 6 times, most recently from 4d08bc5 to 2c63e3a Compare August 25, 2021 08:12
****

### API Fantasy
```go
Copy link
Member

Choose a reason for hiding this comment

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

api definition is not required in the proposals, and i suggest do not include them in the proposals to make the proposals more concise

name: marker
spec:
strategy:
replica: 10
Copy link
Member

Choose a reason for hiding this comment

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

replica -> replicas

- `len(satisfiedPods) < Spec.Strategy.Replicas` if `Spec.Strategy.ConflictPolicy` is `"Overwrite"`.
- `len(satisfiedPods) - len(conflictPods) < Spec.Strategy.Replicas` if `Spec.Strategy.ConflictPolicy` is `"Ignore"`.
- The number(or percentage) of marked Pods `>` `Replicas` iff the number of already marked Pods `>` `Replicas`.
- **Users can remove the marks marked by PodMarker by setting `.Strategy.Replicas = 0`.**
Copy link
Member

Choose a reason for hiding this comment

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

what will happen if one reduce the replicas, will the annotations/labels of marked pods be reset or cleared ?

replica: 10
confilctPolicy: Ignore
sequencePolicy: NotReadyFirst
preferencesInFrontOfSequencePolicy: true
Copy link
Member

Choose a reason for hiding this comment

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

is it possible to add ready term in preferences sections, and use an explicit weight to control the priority of each sorting terms?

@veophi veophi force-pushed the podmarker-proposal branch 3 times, most recently from 43f9efd to df674b2 Compare August 25, 2021 08:42
nodeSelector:
matchLabels:
arch: x86
probeRequirements:
Copy link
Member

Choose a reason for hiding this comment

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

probeRequirements -> podProbe

Copy link
Member Author

Choose a reason for hiding this comment

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

done


**Implement in Kruise-Daemon**

We are going to implement the controller logic in `kruise-daemon` due to the following problems:
Copy link
Member

Choose a reason for hiding this comment

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

Except probing, i don't think it is necessary to depend on kruise-daemon, a controller in kruise-manager is enough

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree

strategy:
replicas: 10
confilctPolicy: Ignore
requirements:
Copy link
Member

Choose a reason for hiding this comment

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

consider make matching criteria naming more consistent
requirements -> matchRequirements
sortRuleForMatchedPods -> matchPreferences

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@veophi veophi force-pushed the podmarker-proposal branch 4 times, most recently from 699c2b0 to ce4aa62 Compare August 26, 2021 09:19
@veophi veophi force-pushed the podmarker-proposal branch 3 times, most recently from ed83258 to 08680d4 Compare August 27, 2021 05:40
@veophi veophi force-pushed the podmarker-proposal branch 2 times, most recently from f33c6dd to de2cd3c Compare September 7, 2021 06:46
@veophi veophi force-pushed the podmarker-proposal branch from de2cd3c to c8ac4cc Compare September 7, 2021 06:47
Copy link
Member

@furykerry furykerry left a comment

Choose a reason for hiding this comment

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

/lgtm

@stale
Copy link

stale bot commented Dec 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 6, 2021
@FillZpp
Copy link
Member

FillZpp commented Dec 6, 2021

/pinned

@stale stale bot removed the wontfix This will not be worked on label Dec 6, 2021
@stale
Copy link

stale bot commented May 24, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 24, 2022
@FillZpp FillZpp removed the wontfix This will not be worked on label May 26, 2022
@stale
Copy link

stale bot commented Aug 31, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 31, 2022
@stale stale bot closed this Sep 7, 2022
@zmberg zmberg reopened this Jan 5, 2023
@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from furykerry by writing /assign @furykerry in a comment. For more information see:The Kubernetes Code Review Process.

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

@stale stale bot removed the wontfix This will not be worked on label Jan 5, 2023
@zmberg
Copy link
Member

zmberg commented Jan 5, 2023

#640

@stale
Copy link

stale bot commented Apr 5, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 5, 2023
@stale stale bot closed this Apr 12, 2023
@furykerry furykerry removed the wontfix This will not be worked on label Mar 24, 2025
@zmberg zmberg reopened this Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm size/L size/L: 100-499
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] PodMarker: mark Pods by number, labels, nodes, probes
6 participants