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

Allow to deploy and alias when non essential APIs are down #1435

Merged
merged 3 commits into from Jul 3, 2018

Conversation

javivelasco
Copy link
Member

This PR introduces two changes:

  • In alias we were trying to purchase a domain by checking if it was available right when we started alias. In case the API was down the CLI would fail, no matter the domain you were aliasing. Now, we only try to purchase the domain in two of the following scenarios:

    1. When we don't have information about the domain and we can't query its nameservers.
    2. When we don't have information about the domain and nameservers are external so we try to add the domain but verification fails.
  • In deploy we were trying to get the events stream to both log the events and to verify instantiation in DCs define by the deployment parameters. If the deployment events API is down, the deployments wouldn't work. Now, getting the events stream is optional so in case the API doesn't work we will try to figure out when the deployment is ready by only polling the deployment state. With a similar approach, verification would be performed only with verifyDeploymentScale when the stream is null.

@javivelasco javivelasco requested review from rauchg and leo July 3, 2018 19:15
@rauchg rauchg merged commit 59be596 into canary Jul 3, 2018
@rauchg rauchg deleted the protect-from-non-essential-apis branch July 3, 2018 19:18
leo pushed a commit that referenced this pull request Jul 3, 2018
* Try to purchase a domain only when there is no other choice

* Allow eventsStream to fail during deployment

* Allow to verify instantiation without events API
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.

None yet

2 participants