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

save RCI client token to agent state #2708

Merged
merged 1 commit into from
Nov 11, 2020
Merged

save RCI client token to agent state #2708

merged 1 commit into from
Nov 11, 2020

Conversation

sharanyad
Copy link
Contributor

Summary

Adding Register Container Instance's client /registration token to agent state (boltdb only)
This is so that ECS service registers using the same container instance ARN for the container instance that issues quick back to back RCI requests.

Implementation details

Saving new registration token key and value to boltDB

Testing

New tests cover the changes: yes

Manually tested by removing the container instance ARN from boltdb state. Restarted agent and received the same container instance ARN as before.

Description for the changelog

Fix a bug where agent persists RCI client token to avoid being registered as different container instance ARNs.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

agent/app/agent.go Outdated Show resolved Hide resolved
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.

4 participants