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

fix: validate volume names #165

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

tzneal
Copy link
Contributor

@tzneal tzneal commented Jan 18, 2023

Fixes aws/karpenter/#3219

Description
We need to validate volume names if specified to ensure they exist so we don't launch a node for pods that won't schedule anyway.

How was this change tested?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@coveralls
Copy link

coveralls commented Jan 18, 2023

Pull Request Test Coverage Report for Build 3951758486

  • 23 of 23 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 77.098%

Totals Coverage Status
Change from base Build 3949670258: 0.3%
Covered Lines: 5851
Relevant Lines: 7589

💛 - Coveralls

@tzneal tzneal enabled auto-merge (squash) January 18, 2023 14:52
jonathan-innis
jonathan-innis previously approved these changes Jan 18, 2023
Copy link
Member

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

Couple nits, LGTM

pkg/controllers/provisioning/volumetopology.go Outdated Show resolved Hide resolved
pkg/controllers/provisioning/volumetopology.go Outdated Show resolved Hide resolved
We need to validate volume names if specified to ensure they exist so we
don't launch a node for pods that won't schedule anyway.

Fixes aws/karpenter/#3219
Copy link
Member

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

🚀

@tzneal tzneal merged commit df9dab2 into kubernetes-sigs:main Jan 18, 2023
@tzneal tzneal deleted the validate-volume-names branch January 18, 2023 19:09
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