Don't register instance to LB target groups unless instance is running #5037
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
/kind bug
What steps did you take and what happened:
In the AWS docs, it's stated that registering an instance with LB target groups is only possible if the instance is running.
Currently CAPA just tries to register it anyway, resulting in the following error in the log output:
What did you expect to happen:
Even though this doesn't stop the install from succeeding, waiting for the instance to be running before registering it to target groups not only avoids the red herring error message but it also avoids unnecessary AWS API calls.
Anything else you would like to add:
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: