Skip to content

Commit f9f4ed1

Browse files
author
tylertitsworth
committed
add secret support
Signed-off-by: tylertitsworth <tyler.titsworth@intel.com>
1 parent 8c86337 commit f9f4ed1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

workflows/charts/tgi/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For more information about how to use Huggingface text-generation-inference with
2323
| fullnameOverride | string | `""` | Full qualified Domain Name |
2424
| ingress | object | `{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` | Ingress configuration |
2525
| nameOverride | string | `""` | Name of the serving service |
26-
| secret.encodedToken | string | `"nil"` | Base64 Encoded Huggingface Hub API Token |
26+
| secret.encodedToken | string | `""` | Base64 Encoded Huggingface Hub API Token |
2727
| service | object | `{"port":80,"type":"NodePort"}` | Service configuration |
2828

2929
----------------------------------------------

workflows/charts/tgi/templates/secret.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
{{- if .Values.secret.encodedToken}}
15+
{{- $name := .Values.secret.encodedToken | required ".Values.secret.encodedToken is required in Base64 Format." -}}
1616
apiVersion: v1
1717
kind: Secret
1818
metadata:
1919
name: {{ .Release.Name }}-hf-token
2020
type: Opaque
2121
data:
22-
HF_TOKEN: {{ .Values.secret.encodedToken }}
23-
{{- end }}
22+
HF_TOKEN: {{ required "Please Provide a Valid Base64 Huggingface Hub Token for secret.encodedToken" .Values.secret.encodedToken }}

workflows/charts/tgi/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ deploy:
4141
memory: "1Gi"
4242
secret:
4343
# -- Base64 Encoded Huggingface Hub API Token
44-
encodedToken: nil
44+
encodedToken: ""
4545
# -- Service configuration
4646
service:
4747
port: 80

0 commit comments

Comments
 (0)