docs: Module Cache page (TF_DATA_DIR) for workspaces - #47
Draft
TigranKhudav wants to merge 2 commits into
Draft
Conversation
Documents how to keep downloaded modules and providers between jobs of the same workspace: the helm chart executor.cache block, the executor's TerraformDataDirCacheRoot setting, and the plain TF_DATA_DIR workspace environment variable that works with any version. Cross-links the provider cache page. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2 tasks
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author
|
Follow-up: added the note that |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New page Workspaces → Module Cache explaining why every job re-downloads modules and providers (throw-away clone) and the three ways to keep them between jobs of the same workspace:
executor.cacheblock (feat(executor): executor.cache block for provider + module caching (chart 4.8.0) terrakube-helm-chart#293),TerraformDataDirCacheRootsetting (feat(executor): per-workspace terraform data directory cache (TF_DATA_DIR) terrakube#3478),TF_DATA_DIRworkspace environment variable, which works with any version.Includes the caveats (pinned versions since
initruns without-upgrade, lock file vs.TF_PLUGIN_CACHE_MAY_BREAK_DEPENDENCY_LOCK_FILE, RWX volumes for several replicas, how to reset a workspace's cache) and a cross-link from the existing Provider Cache page.🤖 Generated with Claude Code