-
Notifications
You must be signed in to change notification settings - Fork 137
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
Feature/plan pvc support #480
base: main
Are you sure you want to change the base?
Feature/plan pvc support #480
Conversation
You can, but I can't promise I'll have time to review in the near future as it requires changes we have to consider if we even want/can do.
One of the main goals of the Workspace BLOB cache initiative is to prevent stuck resources when Source gets deleted before the Terraform resource. With this addition we would have to think about that extra dependency too, cache somewhere, manage what happens if it can't mount the resource yet still don't get stuck on a reconcile loop unable to even delete the resource without patching the Any ideas, suggestions, opinions @chanwit ? |
👋 hi there, I am currently running in the issue, that my plan is to big. Just out of curiosity, what is wrong with the PR apart from the merge conflict? |
#336
With this PR, we can store terraform plans in Kubernetes
PersistentVolumeClaim
.The given PVC should exist already and is not part of the controller's responsibility.
storeReadablePlan
The runner will mount into a subPath that points to its own directory. The path looks like this:
/mnt/plan/terraform_controller/TERRAFORM_OBJECT_NAMESPACE/TERRAFORM_OBJECT_NAME/
This gives the security of a runner to mount only into its own object and also takes care the backend storage is organized and can serve other stuff then the terraform controller.
Example: