UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 3b852a78 authored by Tawsif Siddiqui's avatar Tawsif Siddiqui Committed by Micah Nagel
Browse files

Updated and tested istio annotation for sonarqube

parent c1247bd8
No related branches found
No related tags found
2 merge requests!1386Master,!1218Updated and tested istio annotation for sonarqube
......@@ -7,6 +7,9 @@
{{- $domainName := default .Values.domain .Values.hostname }}
domain: {{ $domainName }}
# Define variables to help with conditionals later
{{- $istioInjection := (and (eq (dig "istio" "injection" "enabled" .Values.addons.sonarqube) "enabled") .Values.istio.enabled) }}
istio:
enabled: {{ .Values.istio.enabled }}
sonarqube:
......@@ -28,6 +31,11 @@ image:
pullPolicy: {{ .Values.imagePullPolicy }}
pullSecret: private-registry
{{- if $istioInjection }}
annotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- if .Values.addons.sonarqube.sso.enabled }}
sonarProperties:
sonar.auth.saml.enabled: {{ .Values.addons.sonarqube.sso.enabled }}
......@@ -58,6 +66,14 @@ postgresql:
service:
port: {{ .port }}
{{- else }}
{{- if $istioInjection }}
master:
podAnnotations:
{{ include "istioAnnotation" $ }}
slave:
podAnnotations:
{{ include "istioAnnotation" $ }}
{{- end }}
# Use internal database, defaults are fine
enabled: true
{{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment