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

Validate snow instance type has at least 2 default vCPU #4891

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

jiayiwang7
Copy link
Member

@jiayiwang7 jiayiwang7 commented Feb 8, 2023

Issue #, if available:

Add vCPU check for snow instance type as kubelet requires at least 2 vCPU.

Description of changes:

Testing (if applicable):

Unit tests + manual e2e

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 8, 2023
@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Merging #4891 (d198427) into main (76aa2bf) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #4891   +/-   ##
=======================================
  Coverage   71.61%   71.62%           
=======================================
  Files         419      419           
  Lines       34198    34210   +12     
=======================================
+ Hits        24492    24504   +12     
  Misses       8177     8177           
  Partials     1529     1529           
Impacted Files Coverage Δ
pkg/providers/snow/aws.go 100.00% <ø> (ø)
pkg/aws/ec2.go 88.00% <100.00%> (+0.76%) ⬆️
pkg/providers/snow/validator.go 95.38% <100.00%> (+0.34%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

continue
}

if it.DefaultVCPU != nil && *it.DefaultVCPU < minimumVCPU {
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 not possible to do it.DefaultVCPU < minimumVCPU instead?

Copy link
Member

Choose a reason for hiding this comment

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

Nvm I see why, the int is a pointer.

@jiayiwang7
Copy link
Member Author

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jiayiwang7

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@jiayiwang7
Copy link
Member Author

/cherrypick release-0.14

@eks-distro-pr-bot
Copy link
Contributor

@jiayiwang7: new pull request created: #4921

In response to this:

/cherrypick release-0.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jiayiwang7 jiayiwang7 deleted the snow-it branch February 15, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants