terraform-provider-truenas icon indicating copy to clipboard operation
terraform-provider-truenas copied to clipboard

Deploy Apps from TrueNAS API

Open ionlights opened this issue 1 year ago • 2 comments

👋 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.

ionlights avatar Dec 29 '23 04:12 ionlights

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 avatar Feb 24 '24 16:02 nrvale0

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?

nrvale0 avatar Feb 24 '24 17:02 nrvale0