-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add format tar.gz #277
Add format tar.gz #277
Conversation
@bendbennett Let me know, if I can assists here on review |
Hi @jkroepke 👋 Looking at the issue for Support and array of compression formats and specifically this comment, I think we would need to ascertain whether we should embrace extending the surface area of functionality of the archive provider in this way. I have marked this PR for triage so that this can be discussed at our next triage meeting. Another consideration that we need to weigh up is the level of community interest. This could either be gauged through the number of upvotes on this PR, or if you felt inclined to, you could create an accompanying issue to outline the use-case(s) for adding Thanks again for the submission. |
Hi @bendbennett thanks for the response. An issue for tar.gz already exists #241. In my case, its exactly the same reason. I have to upload data to an Azure Storage Account / S3 Bucket. zip does not fit here, because the command The I read #29 and understand that this module was designed for AWS Lamba. However I would like to use is to distribute Software via S3 buckets. |
Hi @bendbennett do you have an update here? |
Hi @jkroepke 👋 I'm afraid I don't have an update at this time. I will raise this PR for discussion at our next triage meeting, and I will provide some feedback once we have had a chance to discuss your PR as a team. Thank you for your contribution. |
@bendbennett Cloud Deploy expects your Skaffold configuration to be stored in a tar.gz archive in Cloud Storage. I would like to create this archive and upload it to GCS using Terraform, but I’m currently not able to do that without resorting to null_resource / local_file hacks. Would you be willing to reconsider inclusion of tar.gz in this provider? |
@jkroepke Would you be able to sync your fork and publish it to the Terraform registry until this pull request lands? |
Let’s wait a week if @bendbennett respond. Otherwise @ashwin153 pls ping here in a week again. |
@jkroepke Looks like no response on this. |
https://registry.terraform.io/providers/jkroepke/archive/2.4.2+tar.gz just publish as-is |
@bendbennett do you have any new for us? |
Hi @jkroepke 👋 Looking at this issue, it appears that there are currently 2 up-votes for adding the functionality in the PR you have submitted. As mentioned above, we need to weigh-up increasing the surface area of the utility providers (e.g., archive provider) against the level of community interest. At this time, it does appear that the community does not seem to be expressing a high level of interest in adding |
Hi there! Just wanted to pitch in. We're configuring Palo firewalls and need to use tar.gz archives to inject the initial bootstrapping metadata. It would be very helpful to have these archives available as there are variables we need to change in the initial xml surrounding interface ips. This would significantly speed up our workflow. Thanks! |
Hey @bendbennett I observe more votes on this PR. Is it enough to move forward here? Some users share additional use-cases as well. |
I have a different use case. For AWS Service Catalog products, if you want to use TERRAFORM_TEMPLATE product type we need the tar.gz file. This PR will be very helpful in this case. |
Hey @bendbennett could you take a look here again please? There is a significant community interest. |
This feature would be actually very valuable for instance when you want to "copy" files (actually write files) with cloud init as it is currently limited to 16k. |
Hi @jkroepke 👋🏼 Thanks for your contribution here. I'm the new manager of the team, so I'll do my best to help, but please be patient with me as I'm still ramping up. A lot of new capabilities have shipped within Terraform Core and among the most-used providers since ~2018, when we first started discussing support for additional compression types. We're going to do an audit of all of our utility providers this summer to determine which ones are the most impactful for us to continue to officially maintain. I'm sorry I can't give you a timeline on this, but we are taking into account all of the feedback from the community in this issue, as well as the related ones. To that end, we're pausing additional feature development on this provider for now. Thanks for your patience. |
Hate to be that guy but, this is a finalized PR with extensive tests many of us have been eyeing for a very long time, and have been providing very relevant usefulness examples. |
In case, they discontinue the support for this provider, I consider the fork and continue the maintenance here. |
@jkroepke : would it be possible to upload your tar branch to the opentofu registry? With all the things going on with the license change and the Hashicorp buyout, we are migrating to opentofu but your provider is not available there. |
|
@jkroepke Any thoughts on my review comments? |
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Co-authored-by: Selena Goods <[email protected]>
Co-authored-by: Selena Goods <[email protected]>
…linkDirectories and TestTarArchiver_Dir_ExcludeSymlinkDirectories
@SBGoods I guess it should meet your expectations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for revising the PR @jkroepke! I just requested one minor change to remove extra test runs. The tests are all passing in the draft PR so the PR should be good to go after this change.
Done 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you again for the contribution @jkroepke!
In case you need this feature as well, please do a community vote with 👍
Ref: #272, #29
Fixes: #241
This PR adds
tar.gz
format. I only add tar.gz here because I hope its easier to review compared to other PRs.I think, additional formats can be setup in different PRs. tar.gz is fully covered by go stdlib. No external libraries are required.
Internally, the
NewTarArchiver
can be extended with additional compression methods. At the moment, only gzip is implemented.Fork with tar.gz support: https://registry.terraform.io/providers/jkroepke/archive/2.4.2+tar.gz