mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 08:27:03 +02:00
Ran automattic formatting
Triggered with `hatch run test`
This commit is contained in:
parent
830e168fec
commit
e2711bd2a0
@ -33,7 +33,7 @@
|
||||
|
||||
# this will add an api key with a limit of 120 requests per minute
|
||||
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include "libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate && ltmanage keys add --key req-limit-120 120"
|
||||
|
||||
|
||||
# returns a list of all api keys
|
||||
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include "libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate && ltmanage keys"
|
||||
|
||||
|
@ -20,7 +20,7 @@ spec:
|
||||
{{- toYaml .Values.podAnnotations | nindent 8 }}
|
||||
{{- end }}
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
||||
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
||||
labels:
|
||||
{{- include "libretranslate.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
@ -294,12 +294,12 @@ spec:
|
||||
- name: db-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: db-volume
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if eq .Values.persistence.models.accessMode "ReadWriteMany" }}
|
||||
- name: models-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: models-volume
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.tolerations }}
|
||||
tolerations:
|
||||
|
@ -115,11 +115,11 @@ livenessProbe:
|
||||
periodSeconds: 5
|
||||
|
||||
# Auth secret for basic authentication
|
||||
# generate base64-user-password-pair with:
|
||||
# generate base64-user-password-pair with:
|
||||
# htpasswd -nb <username> <password> | base64
|
||||
#
|
||||
# e.g.:
|
||||
#
|
||||
#
|
||||
# htpasswd -nb admin mySecretPassword | base64
|
||||
# This is used by the nginx ingress controller to enable basic auth for the whole site.
|
||||
# It will create a secret with the name libretranslate-auth.
|
||||
|
Loading…
Reference in New Issue
Block a user