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

Error: unknown command "kubectl" for "kubectl" #354

Closed
LesterThomas opened this issue May 15, 2020 · 5 comments · Fixed by wso2/product-apim-tooling#323
Closed

Error: unknown command "kubectl" for "kubectl" #354

LesterThomas opened this issue May 15, 2020 · 5 comments · Fixed by wso2/product-apim-tooling#323

Comments

@LesterThomas
Copy link

I have deployed the ws02 api and operator on a new GKE cluster. I have followed scenario-1 and everything works correctly until I try and delete the API. When I issue the command apictl delete api online-store I get the error:

Error: unknown command "kubectl" for "kubectl"

I'm using apictl 3.1.1

@LesterThomas
Copy link
Author

I can delete the API using kubectl. The command `kubectl delete api online-store' worked (deleted the API CRD and the operator cleaned-up the deployments and services).

@dinusha92
Copy link
Contributor

Hi @LesterThomas did you change the apictl mode to k8s? " apictl set --mode k8s". Can you do this and try?

@dinusha92
Copy link
Contributor

@LesterThomas I could reproduce this with 3.1.1 and 3.1.2. It is working fine with 3.1.0. I missed that to state in previous comment as I was testing with 3.1.0. We'll have a look and get back to you on this.
Thanks for reporting the issue.
As you already have mentioned, please use the kubectl delete api command meanwhile.

Thanks.

@renuka-fernando
Copy link
Contributor

Hi @LesterThomas thanks for reporting this.

renuka-fernando added a commit to renuka-fernando/product-apim-tooling that referenced this issue Jun 15, 2020
renuka-fernando added a commit to renuka-fernando/product-apim-tooling that referenced this issue Jun 15, 2020
renuka-fernando added a commit to renuka-fernando/product-apim-tooling that referenced this issue Jun 15, 2020
@npamudika
Copy link

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.

4 participants