Gardener extension controller for the AWS cloud provider (https://aws.amazon.com).
19
stars
97
forks
source link
aws-custom-route-controller events are wrongly categorized as `ERR_RETRYABLE_INFRA_DEPENDENCIES` instead of `ERR_INFRA_UNAUTHENTICATED` #1137
Open
ialidzhikov opened 1 week ago
How to categorize this issue?
/area ops-productivity /kind bug /platform aws
What happened: Shoot credentials got invalid. Then the ControlPlane got unhealthy with:
IMO, the
ERR_RETRYABLE_INFRA_DEPENDENCIES
is wrong. It should beERR_INFRA_UNAUTHENTICATED
.In https://github.com/gardener/gardener-extension-provider-aws/blob/95bfe29a9df3ee638a7df0ceb02c63f5b19c4deb/pkg/apis/aws/helper/error_codes.go#L14, the error string
AuthFailure
is already marked asERR_INFRA_UNAUTHENTICATED
.The custom handling for the events: https://github.com/gardener/gardener-extension-provider-aws/blob/95bfe29a9df3ee638a7df0ceb02c63f5b19c4deb/pkg/controller/healthcheck/customroutecontrollerhealth.go#L62-L67
What you expected to happen:
AuthFailure
error to be flagged withERR_INFRA_UNAUTHENTICATED
, not withERR_RETRYABLE_INFRA_DEPENDENCIES
.How to reproduce it (as minimally and precisely as possible): See above.
Anything else we need to know?: N/A
Environment:
kubectl version
):