Skip to content

Commit

Permalink
Be able to turn on profiler via helm. This is going to be useful when…
Browse files Browse the repository at this point in the history
… running molecule tests and we want to see the profiling data. (#22)

goes with kiali/kiali#3469 and #20
  • Loading branch information
jmazzitelli authored Dec 1, 2020
1 parent 028d1be commit d80629e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kiali-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ spec:
- name: ANSIBLE_VERBOSITY_KIALI_KIALI_IO
value: {{ .Values.debug.verbosity | quote }}
- name: ANSIBLE_CONFIG
{{- if .Values.debug.enableProfiler }}
value: "/opt/ansible/ansible-profiler.cfg"
{{- else }}
value: "/etc/ansible/ansible.cfg"
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 8 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions kiali-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ metrics:

# debug.enabled: when true the full ansible logs are dumped after each reconciliation run
# debug.verbosity: defines the amount of details the operator will log (higher numbers are more noisy)
# debug.enableProfiler: when true (regardless of debug.enabled), timings for the most expensive tasks will be logged after each reconciliation loop
debug:
enabled: true
verbosity: "1"
enableProfiler: false

# Defines where the operator will look for Kial CR resources. "" means "all namespaces".
watchNamespace: ""
Expand Down

0 comments on commit d80629e

Please sign in to comment.