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 cancelling startup when performing auto-config #8157

Merged
merged 5 commits into from
Jun 19, 2020

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Jun 19, 2020

This PR also has a second commit to allow specifying the intro token via an environment variable.

…I command

Previously we were holding onto a raw chan and passing it into AutoEncrypt functions during startup. This is been modified so that the Agent.Start takes a context which can be cancelled to stop both auto encrypt and auto-config.
@mkeeler mkeeler requested a review from a team June 19, 2020 15:02
@mkeeler mkeeler force-pushed the feature/auto-config/cli-intro-token branch from 68cf769 to 4e630d7 Compare June 19, 2020 17:46
Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

Nice! This makes sense to me. I had started to make a very similar change in #7609 but never got that into a state that could be merged. I'll probably close that PR now.

Changes look good, a few minor suggestions, nothing blocking.

command/agent/agent.go Show resolved Hide resolved
agent/consul/auto_encrypt.go Outdated Show resolved Hide resolved
agent/auto-config/auto_config.go Outdated Show resolved Hide resolved
@mkeeler mkeeler changed the title Agent Auto Configuration: Allow cancelling startup when performing auto-config Allow cancelling startup when performing auto-config Jun 19, 2020
@mkeeler mkeeler merged commit d6e0548 into master Jun 19, 2020
@mkeeler mkeeler deleted the feature/auto-config/cli-intro-token branch June 19, 2020 19:16
@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit d6e0548 onto release/1.8.x succeeded!

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.

3 participants