add InvalidID error handling for tagging controller#1387
Conversation
|
Hi @joshuakguo. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
|
||
| var ae smithy.APIError | ||
| if errors.As(err, &ae) { | ||
| return ae.ErrorCode() == "InvalidID" |
There was a problem hiding this comment.
doesn't aws return UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceId ? https://github.com/aws/aws-sdk-go-v2/blob/main/service/ec2/types/enums.go#L11963
There was a problem hiding this comment.
I thought that too but in the docs https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html#api-error-codes-table-client InvalidID seems to be called out to be specifically different and for specifically tagging
|
/ok-to-test |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kmala The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/release-note-none |
What type of PR is this?
/kind bug
What this PR does / why we need it:
adding handling for InvalidID errors when trying to tag nodes with invalid instance ids like KWOK nodes
in clusters with kwok nodes, we see errors like
where the kwok nodes keeps on getting requeued over and over again, resulting in a constant stream of unhandled errors, we just drop trying to tag it
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: