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 FindIssuerKeyByName (binding per-loop bug) #115

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

MartinWeindel
Copy link
Member

What this PR does / why we need it:
This PR fixes a bug in the method FindIssuerKeyByName caused by the "binding per-loop" instead of "binding per-iteration" of for loops in Go.
As a consequence of this bug, a seemingly random issuer was selected if there have been multiple issuers.

Which issue(s) this PR fixes:
Fixes #113

Special notes for your reviewer:

Release note:

Fix for correct issuer selection by name.

@MartinWeindel MartinWeindel requested a review from a team as a code owner October 12, 2022 14:07
@gardener-robot gardener-robot added needs/review Needs review size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 12, 2022
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 12, 2022
@MartinWeindel MartinWeindel merged commit 790fb76 into master Oct 12, 2022
@MartinWeindel MartinWeindel deleted the fix/findissuerbyname branch October 12, 2022 14:14
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Oct 12, 2022
@BeckerMax
Copy link

@MartinWeindel Does it make sense to write a unit test for this case?

@MartinWeindel
Copy link
Member Author

@BeckerMax That's a good point. I have added it to my backlog.

@MartinWeindel
Copy link
Member Author

Tests added with PR #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong issuer ref in status
4 participants