linkerd2/cli
Alejandro Pedraza 7a9527bf00
Fix yaml in linkerd-config-addons when providing grafanaUrl (#4581)
Put back space after `grafanaUrl` label in `linkerd-config-addons.yaml`
to avoid breaking the yaml parsing.

```
$ linkerd check
...
linkerd-addons
--------------
‼ 'linkerd-config-addons' config map exists
    could not unmarshal linkerd-config-addons config-map: error
    unmarshaling JSON: while decoding JSON: json: cannot unmarshal
    string into Go struct field Values.global of type linkerd2.Global
```
This was added in #4544 to avoid having the configmap being badly formatted.

So this PR fixes the yaml, but then if we don't set `grafanaUrl` the
configmap format gets messed up, but apparently that's just a cosmetic
problem:

```
apiVersion: v1
data:
  values: "global:\n  grafanaUrl: \ngrafana:\n  enabled: true\n
  image:\n    name:
      gcr.io/linkerd-io/grafana\n  name: linkerd-grafana\n  resources:\n
      cpu:\n      limit:
          240m\n    memory:\n      limit: null\ntracing:\n  enabled:
          false"
          kind: ConfigMap
```
2020-06-09 11:08:32 -07:00
..
cmd Fix yaml in linkerd-config-addons when providing grafanaUrl (#4581) 2020-06-09 11:08:32 -07:00
installsp Fixed prom route in linkerd service profile, and some extra cleanup (#4493) 2020-06-03 12:53:50 -05:00
table Add linkerd alpha stat command (#4130) 2020-03-05 15:23:14 -08:00
Dockerfile-bin Add --close-wait-timeout inject flag (#4409) 2020-05-21 14:14:14 -07:00
main.go Refactor proxy injection to use Helm charts (#3200) 2019-08-07 17:32:37 -05:00