Skip to content

Commit

Permalink
fix: missed some updates from apiKeysecret to apiKeySecret (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot authored Nov 17, 2024
1 parent 442298f commit 18d3251
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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.4
version: 0.6.5
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.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)
![Version: 0.6.5](https://img.shields.io/badge/Version-0.6.5-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: 3 additions & 3 deletions charts/libretranslate/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
echo "The models directory is not empty, skipping model installation."
fi
{{- if or .Values.appSettings.requireApiKeySecret (and .Values.appSettings.existingSecret .Values.appSettings.secretKeys.apiKeysecret) }}
{{- if or .Values.appSettings.requireApiKeySecret (and .Values.appSettings.existingSecret .Values.appSettings.secretKeys.apiKeySecret) }}
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 }}
Expand All @@ -66,7 +66,7 @@ spec:
mountPath: /home/libretranslate/.local/share/argos-translate
- name: db-volume
mountPath: {{ .Values.appConfig.apiKeysDbPathMount }}
{{- if or .Values.appSettings.requireApiKeySecret (and .Values.appSettings.existingSecret .Values.appSettings.secretKeys.apiKeysecret) }}
{{- if or .Values.appSettings.requireApiKeySecret (and .Values.appSettings.existingSecret .Values.appSettings.secretKeys.apiKeySecret) }}
env:
- name: LT_REQUIRE_API_KEY_SECRET
valueFrom:
Expand All @@ -76,7 +76,7 @@ spec:
key: requireApiKeySecret
{{- else }}
name: {{ .Values.appSettings.existingSecret }}
key: {{ .Values.appSettings.secretKeys.apiKeysecret }}
key: {{ .Values.appSettings.secretKeys.apiKeySecret }}
{{- end }}
{{- if (ne .Values.appConfig.reqLimit "null") }}
- name: DEFAULT_API_KEY_LIMIT
Expand Down

0 comments on commit 18d3251

Please sign in to comment.