Skip to content

Commit 00a4a7c

Browse files
author
tylertitsworth
committed
allow usage of existing pvc
Signed-off-by: tylertitsworth <tyler.titsworth@intel.com>
1 parent 6bf20e3 commit 00a4a7c

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
repo: https://github.com/hadolint/hadolint
3636
rev: v2.13.0-beta
3737
- hooks:
38-
- args: ["--config", ".github/linters/.markdown-lint.yaml"]
38+
- args: ["--config", ".github/linters/.markdown-lint.yml"]
3939
id: markdownlint
4040
repo: https://github.com/igorshubovych/markdownlint-cli
4141
rev: v0.42.0

workflows/charts/tgi/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type: application
3333
# This is the chart version. This version number should be incremented each time you make changes
3434
# to the chart and its templates, including the app version.
3535
# Versions are expected to follow Semantic Versioning (https://semver.org/)
36-
version: 0.2.0
36+
version: 0.2.1
3737

3838
# This is the version number of the application being deployed. This version number should be
3939
# incremented each time you make changes to the application. Versions are not expected to

workflows/charts/tgi/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For more information about how to use Huggingface text-generation-inference with
77
> [!TIP]
88
> For Gaudi-related documentation, check out [tgi-gaudi](https://github.com/huggingface/tgi-gaudi).
99
10-
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)
10+
![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)
1111

1212
## Values
1313

@@ -21,6 +21,8 @@ For more information about how to use Huggingface text-generation-inference with
2121
| fullnameOverride | string | `""` | Full qualified Domain Name |
2222
| ingress | object | `{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"tls":[]}` | Ingress configuration |
2323
| nameOverride | string | `""` | Name of the serving service |
24+
| pvc.create | bool | `true` | |
25+
| pvc.name | string | `"model-server-cache"` | |
2426
| pvc.size | string | `"15Gi"` | |
2527
| pvc.storageClassName | string | `"nil"` | |
2628
| secret.encodedToken | string | `""` | Base64 Encoded Huggingface Hub API Token |

workflows/charts/tgi/templates/deploy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ spec:
8484
medium: Memory
8585
- name: hf-data
8686
persistentVolumeClaim:
87-
claimName: {{ include "tgi.fullname" . }}-cache
87+
claimName: {{.Values.pvc.name }}
8888
- name: tmp
8989
emptyDir: {}

workflows/charts/tgi/templates/pvc.yaml

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

15+
{{- if .Values.pvc.create -}}
1516
apiVersion: v1
1617
kind: PersistentVolumeClaim
1718
metadata:
18-
name: {{ include "tgi.fullname" . }}-cache
19+
name: {{ .Values.pvc.name }}
1920
labels:
2021
{{- include "tgi.labels" . | nindent 4 }}
2122
spec:
@@ -27,3 +28,4 @@ spec:
2728
resources:
2829
requests:
2930
storage: {{ .Values.pvc.size }}
31+
{{- end }}

workflows/charts/tgi/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@ ingress:
6363
# hosts:
6464
# - chart-example.local
6565
pvc:
66+
name: model-server-cache
67+
create: true
6668
storageClassName: nil
6769
size: 15Gi

0 commit comments

Comments
 (0)