Heavybullets8 / heavy_script

Bash script for managing Truenas SCALE applications, automatically update applications, backup applications datasets, open a shell for containers.
GNU General Public License v3.0
386 stars 27 forks source link

Feature to enable remote api #93

Closed terafirmanz closed 1 year ago

terafirmanz commented 1 year ago

Hi, Truetool had a feature allowing you to enable the k3s api allowing access by external tools like Lens. Will this feature come to heavy_script?

Heavybullets8 commented 1 year ago

Not unless:

  1. Someone can implement it or
  2. Someone can show me the old code from Truetool.

The primary focus of heavy_script is to handle Native and Truecharts applications, and it does not encompass all aspects of k3s. However, if someone has access to the old code or is willing to implement the feature, I am open to maintaining it in the project.

Note: If someone does want to implement it themselves, they will need to get in contact with me so we can include it on the args branch, it will NOT be accepted on main. Since I have a Major refactor I am currently working on, and do not want to implement it on both main, and then port it to the args branch for its eventual push to main.

Edit: Codes been posted in discord. I'll update here when it's implemented and stable on the args branch.

Lockszmith-GH commented 1 year ago

Was intersted in this as well, wanted to look at old code too - since developmenty is happening here, posting list to archive code here for future reference: https://github.com/adstanley/truetool-archived

Heavybullets8 commented 1 year ago

The feature is available on the args branch with the sub command enable

heavyscript enable --help

For all the available options.

Heavybullets8 commented 1 year ago

2.0.0 is merged

Lockszmith-GH commented 1 year ago

I've been testing this via the args branch, it's working well. I'll test it via main later today.

Heavybullets8 commented 1 year ago

Nothing within the code from args to main, nor the 2.0.0 version has changed. So it should still work properly. Thank you for testing by the way.