Skip to content

Commit

Permalink
remove duplicated check for api key secret (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot authored Nov 17, 2024
1 parent 9f5fe81 commit f6ee368
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/libretranslate/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ maintainers:
appVersion: v1.6.2

# version of the actual helm chart
version: 0.6.0
version: 0.6.1
2 changes: 1 addition & 1 deletion charts/libretranslate/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 2 additions & 4 deletions charts/libretranslate/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6ee368

Please sign in to comment.