Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Path is relative to the installer and not PWD #230

Closed
nlowe opened this issue Mar 26, 2019 · 0 comments
Closed

Setup Path is relative to the installer and not PWD #230

nlowe opened this issue Mar 26, 2019 · 0 comments

Comments

@nlowe
Copy link

nlowe commented Mar 26, 2019

The trident installer uses <installerPath>/setup as a required folder for initial setup operations:

setupPath = path.Join(installerDirectoryPath, "setup")

Unlike specifying paths to backend configuration files, this path is hard-coded. This makes it hard to deploy trident to multiple clusters. for example, I have a git repo with the following layout:

.
├── cluster1
│   └── setup
│       ├── backend.tmpl.json
│       ├── prod-storage-class.yaml
│       └── prod.tmpl.json
├── cluster2
│   └── setup
│       ├── backend.tmpl.json
│       ├── prod-storage-class.yaml
│       └── prod.tmpl.json
├── cluster3
│   └── setup
│       ├── backend.tmpl.json
│       ├── prod-storage-class.yaml
│       └── prod.tmpl.json
├── cluster4
│   └── setup
│       ├── backend.tmpl.json
│       ├── prod-storage-class.yaml
│       └── prod.tmpl.json
├── README.md
└── tridentctl

I have to copy tridentctl to each cluster folder to be able to perform installation and some configuration operations on each cluster. I would like to instead be able to call ../tridentctl from one of the cluster folders. For example:

~/projects/trident-installation/cluster2$ ../tridentctl -n trident install

instead of

~/projects/trident-installation/cluster2$ cp ../tridentctl .
~/projects/trident-installation/cluster2$ ./tridentctl -n trident install
...
~/projects/trident-installation/cluster2$ rm ./tridentctl

This would also allow me to install tridentctl in a system-wide context on my $PATH so I can perform administrative operations on the cluster without being in a directory with a copy of the installer binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants