Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

internal/server: send entrypoint URL config only when we get a token #1040

Merged
merged 4 commits into from
Jan 29, 2021

Conversation

mitchellh
Copy link
Contributor

At the server level, this sets us up completely for any scenario where
the URL service configuration changes. However, the CEB doesn't yet
support changing URL configurations (it ignores them once it has
initialized) so we only send down the URL config once we are ready.
Future changes will just be ignored.

@mitchellh mitchellh added this to the 0.2.x milestone Jan 29, 2021
@mitchellh mitchellh requested a review from a team January 29, 2021 17:26
@github-actions github-actions bot added the core label Jan 29, 2021
At the server level, this sets us up completely for any scenario where
the URL service configuration changes. However, the CEB doesn't yet
support changing URL configurations (it ignores them once it has
initialized) so we only send down the URL config once we are ready.
Future changes will just be ignored.
@@ -55,7 +55,7 @@ func (s *service) UpsertDeployment(
}

// Create a context that will timeout relatively quickly
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an unrelated change that we want to get in as well to increase the buffer horizon has to setup the hostname.

Copy link
Contributor

@krantzinator krantzinator left a comment

Choose a reason for hiding this comment

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

works great with the new horizon changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants