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

Set KUBECONFIG to the $HOME/.kube/config if missing #317

Closed
wants to merge 1 commit into from

Commits on Jul 23, 2018

  1. Set KUBECONFIG to the $HOME/.kube/config if missing

    To support root or non-root docker invocations, set the KUBECONFIG
    specifically to the passed .kube dir. The reason is that 'oc' incovation
    as root is by default looking for the .kube dir uner
    `/root/.kube/config` where as non-root is looking at $HOME/.kube/config.
    
    With this we always set KUBECONFIG, so root invocation of `oc` commands
    will always find the passed in config.
    
    Fixes: ansibleplaybookbundle#298
    
    Signed-off-by: Roy Golan <[email protected]>
    rgolangh committed Jul 23, 2018
    Configuration menu
    Copy the full SHA
    7606e0d View commit details
    Browse the repository at this point in the history