You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ensure Status.Conditions before patching resource status (#66)
Issue #, if available: aws-controllers-k8s/community#1133
Description of changes:
* the logic for ensuring conditions was never been executed because the resource parameter(`latest`) passed in the defer call was always nil . See [Why](https://stackoverflow.com/a/42703862)
* If the `desired` and `latest` state have no delta, set `ResourceSynced` condition to `True`
* Set `ResourceSynced` condition to `False` when there is error in `LateInitialization`
* For any reconciler error, except Terminal, if ResourceSynced condition is missing, set it to `False`
* If there are no reconciler error, and ResourceSynced condition is missing, set it to `Unknown`
* Revert aws-sdk-go upgrade and handle that in separate release.
---
Tested these changes locally for iam-controller and tests pass successfully validating ResourceSynced condition.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments