This repository has been archived by the owner on Dec 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ignition: extend cache to keep files on disk to keep data intact betw…
…een invocations With errors like issue 116 [1], terraform restarts the provider server. And with terraform turning on `AutoMTLS` for all plugins [2], the client cannot reattach to already running provider server [3]. Provider's memory only caches creates errors like `invalid file \"49e2cc7ba023d87070d9b49a0c8f02ff0f63b7f61b390fbce8f64b011bd42ed7\", unknown file id` because the ignition_config resource tried to retrived a file id stored in cache before provider server was restarted. This stores the objects in `diskv` store in users' cache directory, retireving it when the memory cache is not populated. The in-memory cache keeps providing the no overhead access to objects. [1]: hashicorp/go-plugin#116 [2]: hashicorp/terraform#19560 [3]: https://github.com/hashicorp/go-plugin/blob/5692942914bbdbc03558fde936b1f0bc2af365be/client.go#L203-L204
- Loading branch information
1 parent
69baf50
commit 18ce0b3
Showing
2 changed files
with
263 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.