From d74fe97075df85a46d82358958b0786e01db179f Mon Sep 17 00:00:00 2001 From: Joe Sirianni Date: Thu, 12 Dec 2024 15:37:58 -0500 Subject: [PATCH] do not mount postgres TLS certs when sslSource is not 'secret' --- charts/bindplane/Chart.yaml | 2 +- charts/bindplane/README.md | 2 +- charts/bindplane/templates/bindplane-jobs.yaml | 2 ++ charts/bindplane/templates/bindplane.yaml | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/bindplane/Chart.yaml b/charts/bindplane/Chart.yaml index abf6c5c..f3549f3 100644 --- a/charts/bindplane/Chart.yaml +++ b/charts/bindplane/Chart.yaml @@ -3,7 +3,7 @@ name: bindplane description: BindPlane OP is an observability pipeline. type: application # The chart's version -version: 1.23.0 +version: 1.23.1 # The BindPlane OP tagged release. If the user does not # set the `image.tag` values option, this version is used. appVersion: 1.84.0 diff --git a/charts/bindplane/README.md b/charts/bindplane/README.md index c5aa188..716135e 100644 --- a/charts/bindplane/README.md +++ b/charts/bindplane/README.md @@ -1,6 +1,6 @@ # bindplane -![Version: 1.23.0](https://img.shields.io/badge/Version-1.23.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.84.0](https://img.shields.io/badge/AppVersion-1.84.0-informational?style=flat-square) +![Version: 1.23.1](https://img.shields.io/badge/Version-1.23.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.84.0](https://img.shields.io/badge/AppVersion-1.84.0-informational?style=flat-square) BindPlane OP is an observability pipeline. diff --git a/charts/bindplane/templates/bindplane-jobs.yaml b/charts/bindplane/templates/bindplane-jobs.yaml index 92d814b..cab898e 100644 --- a/charts/bindplane/templates/bindplane-jobs.yaml +++ b/charts/bindplane/templates/bindplane-jobs.yaml @@ -613,10 +613,12 @@ spec: {{- if .Values.backend.postgres.sslsecret.name }} - name: postgres-tls-dir emptyDir: {} + {{- if eq .Values.backend.postgres.sslSource "secret" }} - name: {{ .Values.backend.postgres.sslsecret.name }} secret: defaultMode: 0400 secretName: {{ .Values.backend.postgres.sslsecret.name }} + {{- end }} - name: postgres-tls-init configMap: name: postgres-tls-init diff --git a/charts/bindplane/templates/bindplane.yaml b/charts/bindplane/templates/bindplane.yaml index 977fc2c..7f8e697 100644 --- a/charts/bindplane/templates/bindplane.yaml +++ b/charts/bindplane/templates/bindplane.yaml @@ -671,10 +671,12 @@ spec: {{- if .Values.backend.postgres.sslsecret.name }} - name: postgres-tls-dir emptyDir: {} + {{- if eq .Values.backend.postgres.sslSource "secret" }} - name: {{ .Values.backend.postgres.sslsecret.name }} secret: defaultMode: 0400 secretName: {{ .Values.backend.postgres.sslsecret.name }} + {{- end }} - name: postgres-tls-init configMap: name: postgres-tls-init