From 442298fb1f01cb8df14f3b10275dea3d15112d93 Mon Sep 17 00:00:00 2001 From: Jesse Hitch Date: Sun, 17 Nov 2024 18:23:15 +0100 Subject: [PATCH] don't deploy auth Secret unless values are filled in (#15) --- charts/libretranslate/Chart.yaml | 2 +- charts/libretranslate/README.md | 2 +- charts/libretranslate/templates/secret-auth.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/libretranslate/Chart.yaml b/charts/libretranslate/Chart.yaml index efcd1fb..f773231 100644 --- a/charts/libretranslate/Chart.yaml +++ b/charts/libretranslate/Chart.yaml @@ -17,4 +17,4 @@ maintainers: appVersion: v1.6.2 # version of the actual helm chart -version: 0.6.3 +version: 0.6.4 diff --git a/charts/libretranslate/README.md b/charts/libretranslate/README.md index 827056b..ee3b348 100644 --- a/charts/libretranslate/README.md +++ b/charts/libretranslate/README.md @@ -1,6 +1,6 @@ # libretranslate -![Version: 0.6.3](https://img.shields.io/badge/Version-0.6.3-informational?style=flat-square) ![AppVersion: v1.6.2](https://img.shields.io/badge/AppVersion-v1.6.2-informational?style=flat-square) +![Version: 0.6.4](https://img.shields.io/badge/Version-0.6.4-informational?style=flat-square) ![AppVersion: v1.6.2](https://img.shields.io/badge/AppVersion-v1.6.2-informational?style=flat-square) A Helm chart for Kubernetes to deploy LibreTranslate API diff --git a/charts/libretranslate/templates/secret-auth.yaml b/charts/libretranslate/templates/secret-auth.yaml index 0e7964e..b89822d 100644 --- a/charts/libretranslate/templates/secret-auth.yaml +++ b/charts/libretranslate/templates/secret-auth.yaml @@ -1,4 +1,4 @@ -{{- if not .Values.adminUser.existingSecret }} +{{- if and .Values.adminUser.name (not .Values.adminUser.existingSecret) }} apiVersion: v1 kind: Secret metadata: