dariusbakunas / terraform-provider-truenas

Experimental terraform provider to manage TrueNAS server
MIT License
72 stars 16 forks source link

Deploy Apps from TrueNAS API #22

Open ionlights opened 9 months ago

ionlights commented 9 months ago

👋 thanks for all your work building this!

I'm curious if it would be possible to support building out the stack to allow for apps to be deployed using the API. It seems that the relevant bits are in /apps/* and /chart/release/*. (This is preferable to using the kubernetes provider as my understanding of K8s on TrueNAS is that it really shouldn't be treated like a K8s cluster – additionally folks like TrueCharts already package/test plenty of the applications that are likely to be deployed on TrueNAS.)

Though I'm not super familiar with Go or writing Terraform providers, I think I can find some time in the next few months to make a first-pass, if that would be helpful to supporting this.

nrvale0 commented 7 months ago

quick perusal of the api docs suggests that the REST app endpoint is mostly for qeurying status of apps and maybe doesn't have the necessary for deploying...

https://www.truenas.com/docs/api/scale_rest_api.html

nrvale0 commented 7 months ago

I don't know enough typescript to be able to tell if the webui is shelling out to do Helm operations directly or whether it is using some part of the REST API I have not uncovered. Perhaps someone else can take a look?