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

Add additional requestors #11

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

adrianchiris
Copy link
Collaborator

@adrianchiris adrianchiris commented Aug 20, 2024

only last two commits are relevant, the rest is PR #9

@coveralls
Copy link

coveralls commented Aug 20, 2024

Pull Request Test Coverage Report for Build 10511201415

Details

  • 18 of 33 (54.55%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.6%) to 65.796%

Changes Missing Coverage Covered Lines Changed/Added Lines %
api/v1alpha1/zz_generated.deepcopy.go 1 5 20.0%
internal/controller/nodemaintenance_controller.go 17 28 60.71%
Files with Coverage Reduction New Missed Lines %
internal/controller/nodemaintenance_controller.go 2 62.63%
Totals Coverage Status
Change from base Build 10511165864: 0.6%
Covered Lines: 1008
Relevant Lines: 1532

💛 - Coveralls

@adrianchiris adrianchiris force-pushed the add-additional-requestors branch from 38f6e93 to ec0c566 Compare August 20, 2024 14:44
Copy link
Collaborator

@ykulazhenkov ykulazhenkov left a comment

Choose a reason for hiding this comment

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

Looks, good. We can merge the PR after rebasing it.

defaultMaxNodeMaintenanceTime = 1600 * time.Second
waitPodCompletionRequeueTime = 10 * time.Second
drainReqeueTime = 10 * time.Second
defaultMaxNodeMaintenanceTime = 1600 * time.Second
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Time > Seconds?
It is ok for me keep the "time" postfix if you prefer so

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lets keeps as is :)

- remove un-needed protobuf markers
- remove unsupported strategic merge related markes
  as they are not supported for CRDs [1]
- add new field in spec: AdditionalRequestors to be used
  to allow multiple entities to share the same NodeMaintenance
  object.

[1] kubernetes/kubectl#1280

Signed-off-by: adrianc <[email protected]>
nodemaintenance controller modifications to support
additionalRequestors.

- check that no additional requestors are present
  before proceeding with object removal flow when
  object is in ready state
- update controller tests

Signed-off-by: adrianc <[email protected]>
@adrianchiris adrianchiris force-pushed the add-additional-requestors branch from ec0c566 to 0f5f558 Compare August 22, 2024 15:35
@adrianchiris
Copy link
Collaborator Author

Merging once CI is green, thx for the review !

@adrianchiris adrianchiris merged commit feec179 into Mellanox:main Aug 22, 2024
8 checks passed
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