From e2711bd2a0b043601e6f99f43333dfbfe7c0983a Mon Sep 17 00:00:00 2001 From: "P.J. Finlay" Date: Sat, 16 Sep 2023 17:37:03 -0500 Subject: [PATCH] Ran automattic formatting Triggered with `hatch run test` --- chart/templates/NOTES.txt | 2 +- chart/templates/statefulset.yaml | 6 +++--- chart/values.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chart/templates/NOTES.txt b/chart/templates/NOTES.txt index d83122a..835245e 100644 --- a/chart/templates/NOTES.txt +++ b/chart/templates/NOTES.txt @@ -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" diff --git a/chart/templates/statefulset.yaml b/chart/templates/statefulset.yaml index a787932..82536e8 100644 --- a/chart/templates/statefulset.yaml +++ b/chart/templates/statefulset.yaml @@ -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: diff --git a/chart/values.yaml b/chart/values.yaml index cf7150b..2cf6b1e 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -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 | 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.