Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to TCP/DNS stage check, fix 1027 #1063

Merged
merged 12 commits into from Feb 15, 2022
Merged

Additions to TCP/DNS stage check, fix 1027 #1063

merged 12 commits into from Feb 15, 2022

Conversation

iameskild
Copy link
Member

Fixes | Closes | Resolves #1027

Please remove anything marked as optional that you don't need to fill in. Choose one of the keywords preceding to refer to the issue this PR solves, followed by the issue number (e.g Fixes # 666). If there is no issue, remove the line. Remove this note after reading.

Changes:

Increase the timeout and attempts to ensure that TCP and DNS checks pass before moving on.

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds a feature)
  • Breaking change (fix or feature that would cause existing features to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests?

  • Yes
  • No

Further comments (optional)

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered and more.

@@ -459,6 +468,7 @@ def _attempt_tcp_connect(host, port, num_attempts=3, timeout=5):
}
ip_or_name = stage_outputs[directory]["load_balancer_address"]["value"]
host = ip_or_name["hostname"] or ip_or_name["ip"]
host = host.strip("\n")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There appears to be a newline character at the end of host for a reason I have yet to figure out.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be fine. If the newline for some reason doesn't exist in the future, this won't cause any problems.

@iameskild iameskild added this to the Release v0.4.0 milestone Feb 15, 2022
@tylerpotts tylerpotts self-requested a review February 15, 2022 16:21
Copy link
Contributor

@tylerpotts tylerpotts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iameskild iameskild merged commit 5bdf138 into main Feb 15, 2022
@iameskild iameskild deleted the fix-1027-tcp-check branch February 15, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Kubernetes Ingress check fails for AWS
2 participants