linkerd2/cli
Andrew Seigner 7756828ae6
Update install failure message to list resources (#3050)
The existing `linkerd install` error message for existing resources was
shared with `linkerd check`. Given the different contexts, the messaging
made more sense for `linkerd check` than for `linkerd install`.

Modify the error messaging for `linkerd install` to print a bare list
of existing resources, and provide instructions for proceeding.

For example:
```bash
$ linkerd install
Unable to install the Linkerd control plane. It appears that there is an existing installation:

clusterrole.rbac.authorization.k8s.io/linkerd-linkerd-controller
clusterrole.rbac.authorization.k8s.io/linkerd-linkerd-identity

If you are sure you'd like to have a fresh install, remove these resources with:

    linkerd install --ignore-cluster | kubectl delete -f -

Otherwise, you can use the --ignore-cluster flag to overwrite the existing global resources.
```

Fixes #3045

Signed-off-by: Andrew Seigner <siggy@buoyant.io>
2019-07-09 20:21:19 +02:00
..
cmd Update install failure message to list resources (#3050) 2019-07-09 20:21:19 +02:00
install Introduce Control Plane's PSP and RBAC resources into Helm templates (#2920) 2019-06-12 20:18:46 -07:00
installsp Move tap service into its own pod. (#2773) 2019-05-15 16:28:44 -05:00
static Remove GOPATH dependency from cli dev environment (#2444) 2019-03-05 10:25:14 -08:00
Dockerfile-bin Add prometheus metrics for watchers (#3022) 2019-07-08 11:50:26 -07:00
main.go Introduce go generate to embed static templates (#2189) 2019-02-04 18:09:47 -08:00