From f6ee36897e9a0e63818baaa084d14d06e39fd63c Mon Sep 17 00:00:00 2001 From: Jesse Hitch Date: Sun, 17 Nov 2024 16:07:24 +0100 Subject: [PATCH] remove duplicated check for api key secret (#12) --- charts/libretranslate/Chart.yaml | 2 +- charts/libretranslate/README.md | 2 +- charts/libretranslate/templates/statefulset.yaml | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/charts/libretranslate/Chart.yaml b/charts/libretranslate/Chart.yaml index 064ec71..7115b5f 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.0 +version: 0.6.1 diff --git a/charts/libretranslate/README.md b/charts/libretranslate/README.md index 800cc63..1b5b775 100644 --- a/charts/libretranslate/README.md +++ b/charts/libretranslate/README.md @@ -1,6 +1,6 @@ # libretranslate -![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![AppVersion: v1.6.2](https://img.shields.io/badge/AppVersion-v1.6.2-informational?style=flat-square) +![Version: 0.6.1](https://img.shields.io/badge/Version-0.6.1-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/statefulset.yaml b/charts/libretranslate/templates/statefulset.yaml index 7b5062a..58cffce 100644 --- a/charts/libretranslate/templates/statefulset.yaml +++ b/charts/libretranslate/templates/statefulset.yaml @@ -58,10 +58,8 @@ spec: fi {{- if or .Values.appSettings.requireApiKeySecret (and .Values.appSettings.existingSecret .Values.appSettings.secretKeys.apiKeysecret) }} - if [[ ${LT_REQUIRE_API_KEY_SECRET} != "null" ]; then - echo "Setting up your default api key..." - ltmanage keys add --key ${LT_REQUIRE_API_KEY_SECRET} ${DEFAULT_API_KEY_LIMIT} || echo "something went wrong with adding the api key" - fi + echo "Setting up your default api key..." + ltmanage keys add --key ${LT_REQUIRE_API_KEY_SECRET} ${DEFAULT_API_KEY_LIMIT} || echo "something went wrong with adding the api key" {{- end }} volumeMounts: - name: models-volume