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

Using "=" in flags breaks kubeconfig #31

Closed
dtomcej opened this issue Jun 12, 2019 · 2 comments · Fixed by #33
Closed

Using "=" in flags breaks kubeconfig #31

dtomcej opened this issue Jun 12, 2019 · 2 comments · Fixed by #33

Comments

@dtomcej
Copy link
Contributor

dtomcej commented Jun 12, 2019

Using:

./i3o patch --kubeconfig ~/.kube/config --master 127.0.0.1:9000 --debug
INFO[0000] Building Kubernetes Client...                
INFO[0000] Building Kubernetes CRD Client...            
INFO[0000] Preparing Cluster...         

Works, but:

./i3o patch --kubeconfig=~/.kube/config --master=127.0.0.1:9000 --debug
FATA[0000] Error building clients: stat ~/.kube/config: no such file or directory 

Breaks

@dtomcej
Copy link
Contributor Author

dtomcej commented Jun 12, 2019

https://unix.stackexchange.com/questions/498410/why-tilde-doesnt-expand-when-used-with-cli-argument-starting-with-dash

Thanks to bash, tildes are not expanded if they are passed into args with equal signs, but are expanded if given spaces.

FINE. BE THAT WAY BASH.

@dtomcej
Copy link
Contributor Author

dtomcej commented Jun 12, 2019

$ ./i3o patch --kubeconfig=~/.kube/config --master=127.0.0.1:9000 --debug
DEBU[0000] Starting i3o patch...                        
DEBU[0000] Using masterURL: 127.0.0.1:9000              
DEBU[0000] Using kubeconfig: ~/.kube/config             
FATA[0000] Error building clients: stat ~/.kube/config: no such file or directory 
$ ./i3o --kubeconfig ~/.kube/config --master 127.0.0.1:9000 --debug
DEBU[0000] Starting i3o controller...                   
DEBU[0000] Using masterURL: 127.0.0.1:9000              
DEBU[0000] Using kubeconfig: /Users/dtomcej/.kube/config 
INFO[0000] Building Kubernetes Client...                
INFO[0000] Building Kubernetes CRD Client...            
INFO[0000] Verifying Cluster...                         

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant