skupperproject / refdog

A tool for generating Skupper reference docs
https://skupper.io
Apache License 2.0
1 stars 1 forks source link

[v2] nonkube command to show namespace specific paths #3

Open fgiorgetti opened 1 month ago

fgiorgetti commented 1 month ago

The SKUPPER_HOME path is determined at runtime based on:

Basically if you are root, your Skupper home should be:

/usr/local/share/skupper/namespaces/

If you are not root, then:

As users can provide source CRs and eventually custom certificates, before initializing a nonkube site, it would be nice if the CLI had a command or a flag that, considering the --namespace flag, shows the skupper home, even if there is no site yet defined.

hash-d commented 1 month ago

I find it weird to have this on /usr. Wouldn't /var/lib be a more natural place for these files?

fgiorgetti commented 1 month ago

Now that users will eventually modify the content of some namespace files, maybe /var/local or/var/lib could be more appropriate. This is an implementation detail and maybe we should handle it as an issue in the Skupper repository, wdyt?

Regardless of where it will end up writing, the goal here is to have an easy way for a logged user to know where files are or will be located using the CLI.

fgiorgetti commented 1 month ago

Maybe this could be presented as part of the help message of the "bootstrap" command/verb once it is incorporated into refdog.