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

aws: fail on ListCertificatesPages error #725

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

AlexanderYastrebov
Copy link
Member

getACMCertificateSummaries did not check ListCertificatesPages error
and returned empty CertificateSummary slice and no error
via filterCertificatesByTag if filterTag is configured.

Empty CertificateSummary results in empty existingStackCertificateARNs
for each loadBalancer model which triggered stack update:

level=info msg="Updating \"internet-facing\" stack for 0 certificates / 0 ingresses"

and then stack deletion on the next cycle:

level=info msg="Deleted orphaned stack \"kube-ingress-aws-controller-aws-XXX\""

due to empty certificate tags after previous update.

Follow up on #658

`getACMCertificateSummaries` did not check `ListCertificatesPages` error
and returned empty `CertificateSummary` slice and no error
via `filterCertificatesByTag` if `filterTag` is configured.

Empty `CertificateSummary` results in empty `existingStackCertificateARNs`
for each `loadBalancer` model which triggered stack update:
```
level=info msg="Updating \"internet-facing\" stack for 0 certificates / 0 ingresses"
```
and then stack deletion on the next cycle:
```
level=info msg="Deleted orphaned stack \"kube-ingress-aws-controller-aws-XXX\""
```
due to empty certificate tags after previous update.

Follow up on #658

Signed-off-by: Alexander Yastrebov <[email protected]>
@RomanZavodskikh
Copy link
Contributor

👍

1 similar comment
@mikkeloscar
Copy link
Collaborator

👍

@mikkeloscar mikkeloscar merged commit bad6e75 into master Oct 16, 2024
10 checks passed
@mikkeloscar mikkeloscar deleted the aws/fix-list-cert-error-handling branch October 16, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants