From 593f3ffb1327af1ce359478af148e078b66ada2c Mon Sep 17 00:00:00 2001
From: mr-bot <project2872_bot1@noreply.repo1.dso.mil>
Date: Fri, 28 Oct 2022 21:32:02 +0000
Subject: [PATCH] Updated authservice git tag

---
 chart/templates/authservice/values.yaml | 12 ++++++++++++
 chart/values.yaml                       |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/chart/templates/authservice/values.yaml b/chart/templates/authservice/values.yaml
index 7950be8500..b851f7aa83 100644
--- a/chart/templates/authservice/values.yaml
+++ b/chart/templates/authservice/values.yaml
@@ -40,6 +40,18 @@ redis-bb:
       selector: 
         app.kubernetes.io/name: redis-bb
         app.kubernetes.io/instance: authservice-authservice
+      # conditional passes only if all conditionals are true:
+      # - istio: enabled
+      # - mTLS: SCRICT
+      # - istio injection: enabled (for logging ns)
+      {{- if and .Values.istio.enabled (eq (dig "istio" "mtls" "mode" "STRICT" .Values.addons.authservice.values) "STRICT") }}
+      scheme: https
+      tlsConfig:
+        caFile: /etc/prom-certs/root-cert.pem
+        certFile: /etc/prom-certs/cert-chain.pem
+        keyFile: /etc/prom-certs/key.pem
+        insecureSkipVerify: true  
+      {{- end }}
     prometheusRule:
       enabled: true 
       namespace: monitoring
diff --git a/chart/values.yaml b/chart/values.yaml
index 74b1c9b65f..fcc5d2626b 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -797,7 +797,7 @@ addons:
     git:
       repo: https://repo1.dso.mil/platform-one/big-bang/apps/core/authservice.git
       path: "./chart"
-      tag: "0.5.2-bb.0"
+      tag: "0.5.2-bb.1"
 
     # -- Flux reconciliation overrides specifically for the Authservice Package
     flux: {}
-- 
GitLab