Skip to content

Commit

Permalink
Addresses PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davividal committed Nov 26, 2024
1 parent 94c4679 commit 26d388e
Show file tree
Hide file tree
Showing 5 changed files with 1,014 additions and 11 deletions.
8 changes: 3 additions & 5 deletions charts/sonarqube-dce/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,8 @@ Parameters:
*/}}
{{- define "sonarqube.log.jsonoutput" -}}
{{- $node := (get .ctx.Values .node) }}
{{- $tempJsonOutput := "false" -}}
{{- if and .ctx.Values.logging (hasKey .ctx.Values.logging "jsonOutput" ) -}}
{{- $tempJsonOutput = (get .ctx.Values.logging "jsonOutput") | toString -}}
{{- else if and $node.sonarProperties (hasKey $node.sonarProperties "sonar.log.jsonOutput") -}}
{{- $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 -}}
Expand All @@ -255,7 +253,7 @@ Parameters:
{{- end -}}
{{- end -}}
{{- end -}}
{{- printf "%s" $tempJsonOutput -}}
{{- printf "%s" ($tempJsonOutput | toString) -}}
{{- end -}}

{{/*
Expand Down
3 changes: 0 additions & 3 deletions charts/sonarqube-dce/templates/sonarqube-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@ spec:
key: SONAR_CLUSTER_ES_HTTP_SSL_KEYSTOREPASSWORD
{{- end }}
{{- end }}
{{- with .Values.searchNodes.env }}
{{- . | toYaml | trim | nindent 12 }}
{{- end }}
{{- if or .Values.extraConfig.secrets .Values.extraConfig.configmaps }}
envFrom:
{{- range .Values.extraConfig.secrets }}
Expand Down
Loading

0 comments on commit 26d388e

Please sign in to comment.