mirror of https://github.com/linkerd/linkerd2.git
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> |
||
---|---|---|
.. | ||
main.go |