-
Notifications
You must be signed in to change notification settings - Fork 28
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
Unable to specify project namespace when performing deploy #233
Comments
The openshift-config-loader, https://github.com/bucharest-gold/openshift-config-loader , module is the thing that loads your current oc context(which both nodeshift and the openshift-rest-client use). I don't see why we couldn't add some flag like I'm specifically not using "project name" since i think we use project name as the name field from your package.json, and that would get confusing. and i think namespace is the thing that the API docs uses anyway The only problem i could see is if someone specifies a namespace that they cannot access with the user they are logged in as, which is making me think, do we also need the ability to pass in a token, which would bypass the configloader lookup? That is probably another issue. |
A workaround is to add something like this to the start of the openshift script in package.json: "oc project samplenode && " I'm presuming "oc" is a pre-req for using nodeshift? |
it is, but it isn't. It isn't using This config is then passed to the Openshift-rest-client(the part that makes the API calls). But a custom config object could be passed in or pointed to using the But, if you know you have |
Looks like |
This allows the user to specify a namespace project during the build/deploy. Overrides the namespace that the config loader gets fixes nodeshift#233
This allows the user to specify a namespace project during the build/deploy. Overrides the namespace that the config loader gets fixes nodeshift#233
This allows the user to specify a namespace project during the build/deploy. Overwrites any namespace settings in your OpenShift or Kubernetes configuration files fixes nodeshift#233
This allows the user to specify a namespace project during the build/deploy. Overwrites any namespace settings in your OpenShift or Kubernetes configuration files fixes #233
When running "npm run openshift" the build pod is deployed in whichever project is currently active in the local instance of "oc".
This can cause a problem if the user is not currently active in the correct project.
It would be useful to be able to specify the namespace when invoking the nodeshift deploy task
The text was updated successfully, but these errors were encountered: