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 panic in credential renewal job #5116

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Fix panic in credential renewal job #5116

merged 1 commit into from
Sep 18, 2024

Conversation

davidsbond
Copy link
Member

This commit modifies the credential renewal job to handle a case where the renewLease method can return nil, nil. Currently, a panic is caused by usage of the renewedCred variable in this scenario.

This commit adds a nil check and returns an error if the renewedCred variable is returned as nil.

This commit modifies the credential renewal job to handle a case where the `renewLease` method can
return `nil, nil`. Currently, a panic is caused by usage of the `renewedCred` variable in this scenario.

This commit adds a nil check and returns an error if the `renewedCred` variable is returned as `nil`.

Signed-off-by: David Bond <davidsbond93@gmail.com>
@davidsbond davidsbond self-assigned this Sep 18, 2024
@github-actions github-actions bot added the core label Sep 18, 2024
@jefferai jefferai added this to the 0.17.x milestone Sep 18, 2024
@davidsbond davidsbond merged commit 61c1544 into main Sep 18, 2024
65 of 66 checks passed
@davidsbond davidsbond deleted the panic-fix branch September 18, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants