UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 24bbd0ac authored by Micah Nagel's avatar Micah Nagel
Browse files

Keycloak Istio Injection

parent 0579e411
No related branches found
No related tags found
1 merge request!1717Keycloak Istio Injection
......@@ -5,8 +5,8 @@ kind: Namespace
metadata:
name: {{ $name }}
labels:
istio-injection: disabled
istio-injection: {{ dig "istio" "injection" "enabled" .Values.addons.keycloak }}
app.kubernetes.io/name: {{ $name }}
app.kubernetes.io/component: "security-tools"
{{- include "commonLabels" . | nindent 4}}
{{- end }}
\ No newline at end of file
{{- include "commonLabels" . | nindent 4 }}
{{- end }}
......@@ -18,13 +18,21 @@ domain: {{ $domainName }}
openshift: {{ .Values.openshift }}
{{- $istioInjection := (and (eq (dig "istio" "injection" "enabled" .Values.addons.keycloak) "enabled") .Values.istio.enabled) }}
istio:
enabled: {{ .Values.istio.enabled }}
injection: {{ dig "istio" "injection" "enabled" .Values.addons.keycloak }}
keycloak:
enabled: true
gateways:
- istio-system/{{ default "public" .Values.addons.keycloak.ingress.gateway }}
{{- if $istioInjection }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
networkPolicies:
enabled: {{ .Values.networkPolicies.enabled }}
controlPlaneCidr: {{ .Values.networkPolicies.controlPlaneCidr }}
......@@ -41,6 +49,12 @@ serviceMonitor:
{{- if .Values.addons.keycloak.database.host }}
postgresql:
enabled: false
{{- else if $istioInjection }}
postgresql:
primary:
{{ include "istioAnnotation" . }}
readReplicas:
{{ include "istioAnnotation" . }}
{{- end }}
{{- if or .Values.addons.keycloak.database.host (and .Values.addons.keycloak.ingress.cert .Values.addons.keycloak.ingress.key) }}
......
......@@ -1294,7 +1294,7 @@ addons:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/security-tools/keycloak.git
path: "./chart"
tag: "18.1.1-bb.0"
tag: "18.1.1-bb.1"
database:
# -- Hostname of a pre-existing database to use for Keycloak.
......
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