AthenZ / k8s-athenz-sia

Apache License 2.0
1 stars 7 forks source link

fix certreloader update logic #111

Closed t4niwa closed 5 months ago

t4niwa commented 5 months ago

Description

panic occurred because cert reloader attempted to update even though certificate retrieval failed

This PR adds the red box in the following diagram: image

Type of change

Flags

Related issue/PR

Delete this section if there are no issues or pull requests that relate to this pull request.


Checklist

Checklist for maintainer

mlajkim commented 5 months ago
mlajkim commented 5 months ago

Probably do the similar changes as @t4niwa you've done in https://github.com/AthenZ/k8s-athenz-sia/pull/111/commits/0b89c129bade62f08f0c94c9dcd40a6146134c02

BUT, make sure not to use err = ... but instead use a different name not to override the errSomething := ...