Skip to content

Commit bf83532

Browse files
committed
updated chart
1 parent e3880e8 commit bf83532

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

deployments/kubernetes/chart/reloader/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ helm uninstall {{RELEASE_NAME}} -n {{NAMESPACE}}
5757
| `reloader.logFormat` | Set type of log format. Value could be either `json` or `""` | string | `""` |
5858
| `reloader.watchGlobally` | Allow Reloader to watch in all namespaces (`true`) or just in a single namespace (`false`) | boolean | `true` |
5959
| `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` |
6062
| `reloader.readOnlyRootFileSystem` | Enforce readOnlyRootFilesystem | boolean | `false` |
6163
| `reloader.legacy.rbac` | | boolean | `false` |
6264
| `reloader.matchLabels` | Pod labels to match | map | `{}` |

deployments/kubernetes/chart/reloader/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,12 @@ spec:
229229
{{- if .Values.reloader.resourceLabelSelector }}
230230
- "--resource-label-selector={{ .Values.reloader.resourceLabelSelector }}"
231231
{{- 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 }}
232238
{{- if .Values.reloader.custom_annotations }}
233239
{{- if .Values.reloader.custom_annotations.configmap }}
234240
- "--configmap-annotation"

deployments/kubernetes/chart/reloader/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ reloader:
4141
watchGlobally: true
4242
# Set to true to enable leadership election allowing you to run multiple replicas
4343
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"
4448
# Set to true if you have a pod security policy that enforces readOnlyRootFilesystem
4549
readOnlyRootFileSystem: false
4650
legacy:

internal/pkg/options/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ var (
7474
// EnablePProf enables pprof for profiling
7575
EnablePProf = false
7676
// 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"
7979
)
8080

8181
func ToArgoRolloutStrategy(s string) ArgoRolloutStrategy {

0 commit comments

Comments
 (0)