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

chore: using lo.FromPtr is safer than directly accessing the pointer #316

Merged
merged 2 commits into from
May 1, 2024

Conversation

uniemimu
Copy link
Contributor

@uniemimu uniemimu commented Apr 30, 2024

The nodeClass.Spec.OSDiskSizeGB dereference actually crashes when being called from the cloudprovider GetInstanceTypes if the nodepool is nil.

Fixes #315

Description

How was this change tested?

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note


The nodeClass.Spec.OSDiskSizeGB dereference actually crashes when
being called from the Azure cloudprovider GetInstanceTypes if the
nodepool is nil.

Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
@coveralls
Copy link

coveralls commented May 1, 2024

Pull Request Test Coverage Report for Build 8904687976

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.774%

Totals Coverage Status
Change from base Build 8903043267: 0.0%
Covered Lines: 36283
Relevant Lines: 37109

💛 - Coveralls

@tallaxes tallaxes merged commit ee3bbcc into Azure:main May 1, 2024
9 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.

segfault in func ephemeralStorage of instancetype.go
4 participants