I want to use the rancher cli in our CI/CD-pipeline. We are using bamboo.
When only one cluster is managed by the Rancher everything works fine.
But when a second cluster is managed, the Cli is asking for a default cluster.
" echo -e ‘yes\n1’ | rancher login --token … "
" printf-e ‘yes\n1’ | rancher login --token … "
" printf-e ‘yes\n1\n’ | rancher login --token … "
The result is always:
Select your default Project:time=“2018-06-18T10:30:54+02:00” level=fatal msg=EOF
Ho can i set automatically on cluster? Is there a trick?
It would be great, when someone has an idea.