File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
deployments/kubernetes/chart/reloader Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ helm uninstall {{RELEASE_NAME}} -n {{NAMESPACE}}
57
57
| ` reloader.logFormat ` | Set type of log format. Value could be either ` json ` or ` "" ` | string | ` "" ` |
58
58
| ` reloader.watchGlobally ` | Allow Reloader to watch in all namespaces (` true ` ) or just in a single namespace (` false ` ) | boolean | ` true ` |
59
59
| ` reloader.enableHA ` | Enable leadership election allowing you to run multiple replicas | boolean | ` false ` |
60
+ | ` reloader.enablePProf ` | Enables pprof for profiling | boolean | ` false ` |
61
+ | ` reloader.pprofAddr ` | Address to start pprof server on | string | ` :6060 ` |
60
62
| ` reloader.readOnlyRootFileSystem ` | Enforce readOnlyRootFilesystem | boolean | ` false ` |
61
63
| ` reloader.legacy.rbac ` | | boolean | ` false ` |
62
64
| ` reloader.matchLabels ` | Pod labels to match | map | ` {} ` |
Original file line number Diff line number Diff line change @@ -229,6 +229,12 @@ spec:
229
229
{{- if .Values.reloader.resourceLabelSelector }}
230
230
- " --resource-label-selector={{ .Values.reloader.resourceLabelSelector }}"
231
231
{{- end }}
232
+ {{- if .Values.reloader.enablePProf }}
233
+ - " --enable-pprof"
234
+ {{- if and .Values.reloader.pprofAddr }}
235
+ - " --pprof-addr={{ .Values.reloader.pprofAddr }}"
236
+ {{- end }}
237
+ {{- end }}
232
238
{{- if .Values.reloader.custom_annotations }}
233
239
{{- if .Values.reloader.custom_annotations.configmap }}
234
240
- " --configmap-annotation"
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ reloader:
41
41
watchGlobally : true
42
42
# Set to true to enable leadership election allowing you to run multiple replicas
43
43
enableHA : false
44
+ # Set to true to enable pprof for profiling
45
+ enablePProf : false
46
+ # Address to start pprof server on. Default is ":6060"
47
+ pprofAddr : " :6060"
44
48
# Set to true if you have a pod security policy that enforces readOnlyRootFilesystem
45
49
readOnlyRootFileSystem : false
46
50
legacy :
Original file line number Diff line number Diff line change 74
74
// EnablePProf enables pprof for profiling
75
75
EnablePProf = false
76
76
// PProfAddr is the address to start pprof server on
77
- // Default is localhost :6060
78
- PProfAddr = "localhost :6060"
77
+ // Default is :6060
78
+ PProfAddr = ":6060"
79
79
)
80
80
81
81
func ToArgoRolloutStrategy (s string ) ArgoRolloutStrategy {
You can’t perform that action at this time.
0 commit comments