linkerd2/controller/cmd
Kevin Leimkuhler 388f14f48f
allow pprof to be configurable via helm flags (#8090)
Follow-up to #8087 that allows pprof to be enabled via the `--set
enablePprof=true` flag.

Each control plane components spawns its own admin server, so each of these
received it's own `enable-pprof` flag. When `enablePprof=true`, it is passed
through to each component so that when it launches its admin server, its pprof
endpoints are enabled.

A note on the templating: `-enable-pprof={{.Values.enablePprof | default
false}}`. `false` values are not rendered by Helm so without the `... | default
false}}`, it tries to pass the flag as `-enable-pprof=""` which results in an
error. Inlining this felt better than conditionally passing the flag with

```yaml {{ if .Values.enablePprof -}} -enable-pprof={{.Values.enablePprof}} {{
end -}} ```

Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
2022-03-22 14:31:04 -06:00
..
destination allow pprof to be configurable via helm flags (#8090) 2022-03-22 14:31:04 -06:00
heartbeat Log Warn instead of Err when prom not found in heartbeat (#7029) 2021-10-06 09:46:10 -05:00
identity allow pprof to be configurable via helm flags (#8090) 2022-03-22 14:31:04 -06:00
proxy-injector allow pprof to be configurable via helm flags (#8090) 2022-03-22 14:31:04 -06:00
sp-validator allow pprof to be configurable via helm flags (#8090) 2022-03-22 14:31:04 -06:00
main.go Remove the `linkerd-controller` pod (#6039) 2021-04-19 09:57:45 -05:00