Skip to content

Commit

Permalink
Remove Storage Class dirty fix
Browse files Browse the repository at this point in the history
Signed-off-by: hanchenli <[email protected]>
  • Loading branch information
Hanchenli committed Feb 17, 2025
1 parent 2d51bfd commit 3eb259e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ servingEngineSpec:
pvcStorage: "40Gi"
pvcAccessMode:
- ReadWriteMany
storageClass: "efs_static_storage_class_indicator" #This is to let helm pvc know it should be empty string
storageClass: "" #This is to let helm pvc know it should be empty string
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.6
version: 0.0.7

maintainers:
- name: apostac
8 changes: 2 additions & 6 deletions helm/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ spec:
resources:
requests:
storage: {{ $modelSpec.pvcStorage | default "20Gi" }} # Default to 40Gi if not set
{{- if $modelSpec.storageClass }}
{{- if eq $modelSpec.storageClass "efs_static_storage_class_indicator" }}
storageClassName: ""
{{- else }}
storageClassName: "{{ $modelSpec.storageClass }}"
{{- end }}
{{- if hasKey $modelSpec "storageClass" }}
storageClassName: "{{ $modelSpec.storageClass }}"
{{- end }}
{{- if not (empty $modelSpec.pvcMatchLabels) }}
selector:
Expand Down
2 changes: 1 addition & 1 deletion tutorials/deployments/01-AWS-EKS-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ servingEngineSpec:
pvcStorage: "40Gi"
pvcAccessMode:
- ReadWriteMany
storageClass: "efs_static_storage_class_indicator"
storageClass: ""
```
### Step 7 Stopping the Helm Cluster
Expand Down

0 comments on commit 3eb259e

Please sign in to comment.