-
Notifications
You must be signed in to change notification settings - Fork 82
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
Dockerfile and need for oc / kubeconfig #159
Comments
PRs are always welcome, please free to send the patch |
Some of the tasks are handled here: https://github.com/red-hat-data-services/ods-ci/pull/160/files |
Regarding >provide a valid $HOME/.kube/config I believe this file is automatically created the first time you connect to a cluster with the EDIT: I manually removed my config and could reproduce the same error you are facing, manually logging in to a cluster with |
Right. It just felt a bit strange to me: I'm logged in I did a bit of experimenting, and it is possible to generate the ./kube/config file based on those credentials provided in the variable file. |
I agree with you that this is not an ideal behaviour and that the library itself should I am not sure if generating a config file from the Not quite sure about relying on the variables file being there either. The library is supposed to work on its own as well as with ods-ci, and I'm not sure we want to enforce the presence of our own variable file to everyone who might use it. |
I agree with you both, to log manually to clusters is no the ideal behaviour and I also agree that the library should work on its own and not rely on the variable file. To add the login feature to the library is needed, already under development and will be available soon. The login feature will also give us the ability to log to different clusters between tests and also to change the user within the same cluster. |
I have submitted a PR (#166) that, among other things, attempts to do an |
Hello,
I was trying to use ODS-CI, yesterday, and I noticed some changes. (I had last used it a few months ago).
I managed to get it working again, but before I submit PRs, I wanted to check a few things.
Dockerfile
It seems that the Dockerfile has not been udpated in a while. That's what I prefer to use, personally.
If I get that working again, is it ok to send a PR to get that fixed?
oc and OpenShiftCLI
To get the container version of ods-ci to work I had to update the Dockerfile. I had to:
oc
cli in the container./libs
folder into the container$HOME/.kube/config
That last one has given me the most trouble, and is also the one I'm the least sure about.
Since User and Pass are provided as variables, I would have thought that would be used to authenticate.
However, without a valid config file, it keeps failing with:
Is there a way to not require this file?
Thanks!
The text was updated successfully, but these errors were encountered: