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 ae5e290 commit 94c4679
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
5 changes: 4 additions & 1 deletion charts/sonarqube-dce/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ Set sonarqube.jvmCEOpts

{{/*
Set sonarqube.log.jsonoutput
Parameters:
- ctx: The context to use (required, normally should be '.')
- node: The node to use (required, ApplicationNodes or searchNodes)
*/}}
{{- define "sonarqube.log.jsonoutput" -}}
{{- $node := (get .ctx.Values .node) }}
Expand Down Expand Up @@ -407,7 +410,7 @@ Set combined_search_env, ensuring we don't have any duplicates with our features
*/}}
{{- define "sonarqube.combined_search_env" -}}
{{- $filteredEnv := list -}}
{{- range $index,$val := .Values.ApplicationNodes.env -}}
{{- range $index,$val := .Values.searchNodes.env -}}
{{- if not (has $val.name (list "SONAR_LOG_JSONOUTPUT")) -}}
{{- $filteredEnv = append $filteredEnv $val -}}
{{- end -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,17 +856,6 @@ spec:
ephemeral-storage: 1536M
memory: 3072M
env:
- name: SONAR_WEB_CONTEXT
value: some/context
- name: SONAR_CE_JAVAOPTS
value: -Xms2G -Xmx2G -DsomeOption=some/Value
- name: SONAR_WEB_JAVAOPTS
value: -Xmx1g
- name: FOOBAR
valueFrom:
secretKeyRef:
key: BARFOO
name: sonarqube-ldap
- name: SONAR_LOG_JSONOUTPUT
value: "false"
- name: SONAR_CLUSTER_ES_HOSTS
Expand All @@ -877,6 +866,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SONAR_LOG_JSONOUTPUT
value: "true"
livenessProbe:
exec:
command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ ApplicationNodes:
secretKeyRef:
name: "sonarqube-ldap"
key: BARFOO

prometheusExporter:
enabled: true
httpProxy: "http://someProxy"
httpsProxy: "https://someProxy"
noProxy: "https://someUrl"
noProxy: "https://someUrl"

searchNodes:
env:
- name: SONAR_LOG_JSONOUTPUT
value: "true"

0 comments on commit 94c4679

Please sign in to comment.