Skip to content

Commit

Permalink
Fixed login and context capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoralespou committed Mar 29, 2017
1 parent d8438b6 commit a87f5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oc-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function up {
# TODO: Change skip-tls with the certs --certificate-authority=
oc adm config set-cluster ${_profile} --server=https://$OC_CLUSTER_PUBLIC_HOSTNAME:8443 --insecure-skip-tls-verify=true &> /dev/null
# TODO: Change token for secure certs: --client-certificate=path/to/my/client/cert --client-key=path/to/my/client/key
oc adm config set-credentials ${OS_DEFAULT_USER}@${_profile} --token=$(oc whoami -t) &> /dev/null
oc adm config set-credentials ${OS_DEFAULT_USER}/${_profile} --token=$(oc whoami -t) &> /dev/null
oc adm config set-context ${_profile} --cluster=${_profile} --user=${OS_DEFAULT_USER}/${_profile} --namespace=${OS_DEFAULT_PROJECT} &> /dev/null
oc adm config use-context ${_profile} # &> /dev/null

Expand Down

0 comments on commit a87f5a3

Please sign in to comment.