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

Path Exist when adding yaml #1053

Open
francesco-di-marcantonio opened this issue Jan 7, 2025 · 1 comment
Open

Path Exist when adding yaml #1053

francesco-di-marcantonio opened this issue Jan 7, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@francesco-di-marcantonio

When trying to add the yaml configuration file i always receive error:

"path exist"

Steps to reproduce the behavior:
kubecm add --context Contextname -cf ~/Dropbox/IT/mktpl.yaml

Expected behavior
Adding context

Ubuntu 22

@sunny0826
Copy link
Owner

Are there any other error messages reported? I reproduced the command and found no reported errors:

# The added context does not exist in kubeconfig
% kc add --context xxx -cf add-kind                                                                                    
add-kind Path Exist
No context to add.

# The added context exists in kubeconfig
% kc add --context kind-add-kind -cf add-kind                                                                       
add-kind Path Exist
Add Context: kind-add-kind
「add-kind」 write successful!
+------------+------------------+------------------+------------------+----------------------------+--------------+
|   CURRENT  |       NAME       |      CLUSTER     |       USER       |           SERVER           |   Namespace  |
+============+==================+==================+==================+============================+==============+
|            |   kind-add-kind  |   kind-add-kind  |   kind-add-kind  |   https://127.0.0.1:53759  |    default   |
+------------+------------------+------------------+------------------+----------------------------+--------------+
|      *     |     kind-kind    |     kind-kind    |     kind-kind    |   https://127.0.0.1:64805  |    default   |
+------------+------------------+------------------+------------------+----------------------------+--------------+

@sunny0826 sunny0826 added the help wanted Extra attention is needed label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants