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

update(storage): update default minio resource limits and requests #544

Merged
merged 2 commits into from
Apr 12, 2021

Conversation

soulseen
Copy link
Collaborator

@soulseen soulseen commented Apr 9, 2021

Signed-off-by: soulseen zhuxiaoyang1996@gmail.com

Signed-off-by: soulseen <zhuxiaoyang1996@gmail.com>
Limits: limits,
Requests: requests,
}
return &corev1.ResourceRequirements{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just return nil here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't sure this is right, but return &corev1.ResourceRequirements{} must be correct。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

looks like return nil works well, and maybe it is a better choice, and to avoid memory escapes.

@soulseen soulseen requested a review from heww April 11, 2021 04:58
Signed-off-by: soulseen <zhuxiaoyang1996@gmail.com>
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

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

LGTM

@bitsf bitsf merged commit 076f99c into goharbor:master Apr 12, 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
Development

Successfully merging this pull request may close these issues.

None yet

4 participants