Add remotePullPolicy to reduce remote module download costs#126
Merged
turkenf merged 3 commits intoupbound:mainfrom Feb 23, 2026
Merged
Add remotePullPolicy to reduce remote module download costs#126turkenf merged 3 commits intoupbound:mainfrom
turkenf merged 3 commits intoupbound:mainfrom
Conversation
Signed-off-by: Fatih Türken <turkenf@gmail.com>
Signed-off-by: Fatih Türken <turkenf@gmail.com>
ca032ba to
ba423dc
Compare
Contributor
Author
|
/test-examples="examples/cluster/workspace-inline-aws.yaml" |
ytsarev
approved these changes
Feb 20, 2026
Member
ytsarev
left a comment
There was a problem hiding this comment.
Validated e2e with the test build of xpkg.upbound.io/solutions/provider-opentofu:v1.0.0-16.gba423dc
k get workspaces.opentofu.upbound.io
NAME SYNCED READY AGE
example-iam-with-entrypoint-always True True 10m
example-iam-with-entrypoint-outputs True True 13m
~ $ ls -la /tofu/
total 24
drwxr-xr-x 1 2000 root 4096 Feb 20 16:36 .
drwxr-xr-x 1 root root 4096 Feb 20 16:36 ..
drwx------ 6 2000 2000 4096 Feb 20 16:46 50fcfe95-2a44-46d3-a6f5-94af0434ed74
drwx------ 6 2000 2000 4096 Feb 20 16:36 97f76c44-2e15-423d-8ce5-c4153c0c3b0c
drwxr-xr-x 1 2000 root 4096 Feb 20 16:36 plugin-cache
Always was pulled after the standard 10m reconciliation poll interval
IfNotPresent persisted the original timestamp
Stuff works 💪
I left minor suggestions inline.
Signed-off-by: Fatih Türken <turkenf@gmail.com>
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.
Description of your changes
Implements remotePullPolicy field (Always, IfNotPresent) to control when remote modules are downloaded.
Port of crossplane-contrib/provider-terraform#232 for provider-opentofu.
I have:
make reviewableto ensure this PR is ready for review.How has this code been tested
Tested with
index.docker.io/turkenf/provider-opentofu:v1.0.0-16.gba423dcon a kind cluster. Applied workspace withremotePullPolicy: IfNotPresentusing a remote git module with entrypoint. Verified from provider logs that the module is downloaded once on the first reconciliation and skipped on subsequent reconciliations. URL change correctly triggers a re-download.