Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Add cluster info into error messages #189

Open
maqiuyujoyce opened this issue May 1, 2018 · 0 comments
Open

Add cluster info into error messages #189

maqiuyujoyce opened this issue May 1, 2018 · 0 comments

Comments

@maqiuyujoyce
Copy link
Contributor

When I tried to run sc remove-gcp-broker, I got the following error message:

Failed to remove the Service Broker
Error: error deleting broker resources: failed to delete resources output: exit status 1: Error from server (Forbidden): error when deleting "/tmp/service-catalog-gcp805626444/namespace.yaml": namespaces "google-oauth" is forbidden: User "" cannot delete namespaces in the namespace "google-oauth": Required "container.namespaces.delete" permission.

I assigned myself Kubernetes Engine Admin role (which covers the specific permission showed in the error message) but still got the same error.

Eventually I realized that the actual root cause is that I was connecting to the incorrect cluster.

So it might be good for us to also include the cluster name into the error message when the tool failed in kubectl commands.

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

No branches or pull requests

1 participant