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

[YUNIKORN-561]Some container tags are missing upon scheduler restart #285

Merged
merged 2 commits into from Jul 23, 2021

Conversation

HuangTing-Yao
Copy link
Contributor

@HuangTing-Yao HuangTing-Yao commented Jul 22, 2021

What is this PR for?

Fix the AllocationTags missing when scheduler restart.

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-561

How should this be tested?

Screenshots (if appropriate)

561

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

@HuangTing-Yao HuangTing-Yao self-assigned this Jul 22, 2021
@codecov
Copy link

codecov bot commented Jul 22, 2021

Codecov Report

Merging #285 (128935a) into master (c47ed51) will increase coverage by 3.25%.
The diff coverage is 77.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #285      +/-   ##
==========================================
+ Coverage   59.75%   63.00%   +3.25%     
==========================================
  Files          35       37       +2     
  Lines        3133     3433     +300     
==========================================
+ Hits         1872     2163     +291     
- Misses       1180     1185       +5     
- Partials       81       85       +4     
Impacted Files Coverage Δ
pkg/appmgmt/appmgmt_recovery.go 67.50% <0.00%> (-8.18%) ⬇️
pkg/cache/amprotocol_mock.go 0.00% <0.00%> (ø)
pkg/cache/context_recovery.go 45.23% <0.00%> (-1.11%) ⬇️
pkg/cache/nodes.go 79.80% <ø> (ø)
pkg/common/events/recorder_mock.go 0.00% <0.00%> (ø)
pkg/common/events/states.go 0.00% <0.00%> (ø)
pkg/common/resource.go 90.72% <0.00%> (-9.28%) ⬇️
pkg/controller/application/app_controller.go 71.05% <ø> (-0.26%) ⬇️
...missioncontrollers/webhook/admission_controller.go 33.74% <0.00%> (+1.00%) ⬆️
pkg/shim/main.go 0.00% <ø> (ø)
... and 25 more

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 7b5333b...128935a. Read the comment docs.

Comment on lines 46 to 49
func CreateTagsForTask(pod *v1.Pod) map[string]string {
return createTagsForTask(pod)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, for simplicity, I think we can just rename this function to CreateTagsForTask to expose it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, done.

Copy link
Contributor

@yangwwei yangwwei left a comment

Choose a reason for hiding this comment

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

+1

@yangwwei yangwwei merged commit 2c92a7f into apache:master Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants