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(oscMachineTemplate): Nil pointer due to error not managed #342

Conversation

sebglon
Copy link
Contributor

@sebglon sebglon commented Jul 30, 2024

What type of PR is this?

/kind bug Fixes nilPointer on oscMachineTemlate capacity controller

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #341

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

log.Error(err, "failed to get machineTemplate.")
return reconcile.Result{RequeueAfter: 30 * time.Second}, nil
}
log.V(2).WithValues("machineTemplateScope", machineTemplateScope).Info("ubble-test")
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for your work on this PR. I have a couple of suggestions:

Log Message Update: Please update the log message "ubble-test" to a more descriptive message that accurately reflects the context.

Logging Verbosity: Currently, the logs use log.V(2). High verbosity levels can generate excessive log data in a production environment. Could you please adjust the verbosity level to INFO or another appropriate level ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry. this log was only for my debug. removed

@sebglon sebglon force-pushed the fix/oscmachinetemplate/crashloop-nilpointer branch from 328927b to 1aeef7b Compare July 31, 2024 07:35
Copy link
Contributor

@outscale-hmi outscale-hmi left a comment

Choose a reason for hiding this comment

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

Good

@outscale-hmi outscale-hmi merged commit cc9870f into outscale:main Jul 31, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Nil pointer on oscMachineTemplate
2 participants