Skip to content

Commit

Permalink
feat(helm-chart): add config parameter for storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
flohansen committed Jun 26, 2024
1 parent be71705 commit f95ed44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dasher/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.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/dasher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ helm uninstall <release-name>
| `service.loadBalancerIP` | The IP address of the load balancer. Only used when `service.type` is `LoadBalancer`. | `""` |
| `ingress.enabled` | If an ingress should be deployed. Make sure to setup a proper ingress controller e.g. [nginx](https://docs.nginx.com/nginx-ingress-controller/). | `false` |
| `ingress.ingressClassName` | The ingress class name (like `nginx`) | `""` |
| `storage.storageClassName` | The class name for the storage. | `standard` |
| `storage.size` | The size of the persistent volume. This is being used to save the application state (in SQLite). | `1G` |
2 changes: 1 addition & 1 deletion charts/dasher/templates/server.statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
storageClassName: {{ .Values.storage.storageClassName }}
resources:
requests:
storage: {{ .Values.storage.size }}
1 change: 1 addition & 0 deletions charts/dasher/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ ingress:
ingressClassName: ""

storage:
storageClassName: standard
size: 1G

0 comments on commit f95ed44

Please sign in to comment.