Skip to content

Commit

Permalink
Addresses comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davividal committed Nov 26, 2024
1 parent 26d388e commit 88f2ce4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions charts/sonarqube-dce/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ Parameters:
{{- $tempJsonOutput := default "false" (get .ctx.Values.logging "jsonOutput") -}}
{{- if and $node.sonarProperties (hasKey $node.sonarProperties "sonar.log.jsonOutput") -}}
{{- $tempJsonOutput = (get $node.sonarProperties "sonar.log.jsonOutput") -}}
{{- else if $node.env -}}
{{- range $index, $val := $node.env -}}
{{- end -}}
{{- if .ctx.Values.env -}}
{{- range $index, $val := .ctx.Values.env -}}
{{- if eq $val.name "SONAR_LOG_JSONOUTPUT" -}}
{{- $tempJsonOutput = $val.value -}}
{{- end -}}
{{- end -}}
{{- else if and .ctx.Values.sonarProperties (hasKey .ctx.Values.sonarProperties "sonar.log.jsonOutput") -}}
{{- $tempJsonOutput = (get .ctx.Values.sonarProperties "sonar.log.jsonOutput") -}}
{{- else if .ctx.Values.env -}}
{{- range $index, $val := .ctx.Values.env -}}
{{- end -}}
{{- if $node.env -}}
{{- range $index, $val := $node.env -}}
{{- if eq $val.name "SONAR_LOG_JSONOUTPUT" -}}
{{- $tempJsonOutput = $val.value -}}
{{- end -}}
Expand Down

0 comments on commit 88f2ce4

Please sign in to comment.