Lerentis / terraform-provider-gitea

Terraform Provider for your Gitea Instance
https://registry.terraform.io/providers/Lerentis/gitea/latest
MIT License
22 stars 11 forks source link

Add repo file resource #12

Closed juddowilcox closed 1 year ago

juddowilcox commented 1 year ago

Is your feature request related to a problem? Please describe. There is no declarative means to create/read/update/delete a file in/from/in/from a repository in gitea.

Describe the solution you'd like Add a gitea_file or, alternatively, a gitea_repository_file resource that adds a file to a repository in gitea using https://gitea.com/gitea/go-sdk/src/branch/main/gitea/repo_file.go

Describe alternatives you've considered

Additional context Ultimately I need a crossplane provider to be able to add a file to a repository in gitea. The shortest path to that is to add the resource to the gitea terraform provider and then generate the crossplane provider from the terraform provider using terrajet. I already have this terrajet provider so the only piece that's missing is the new resource in the terraform provider.

I am willing to implement this but I would need guidance, as you already know, to approximate the quality of the rest of the gitea terraform provider. I am also willing to implement tests but, again, I would need guidance.

Lerentis commented 1 year ago

This seems like a more generic problem and something that is very specific to your usecase. might i suggest to checkout https://github.com/arl-sh/terraform-provider-git to have a separation of concerns here?

Lerentis commented 1 year ago

Ping @juddowilcox , did you check out the other provider i mentioned?

Lerentis commented 1 year ago

Closing due to inactivity