diff --git a/taskfile-build/README.md b/taskfile-build/README.md index 2bb7a3b..14ceba6 100644 --- a/taskfile-build/README.md +++ b/taskfile-build/README.md @@ -26,6 +26,7 @@ This Helm chart deploys a taskfile.build container. | `caddyRoot` | Static site path relative to repo root. | `""` | | `additionalEnvs` | Additional environment variables to set | `{}` | | `storageClassName` | Set the storage class | `""` | +| `storageSize` | Set the persistent volume claim size | `1Gi` | ### Resources requests and limits diff --git a/taskfile-build/templates/pvc.yaml b/taskfile-build/templates/pvc.yaml index ecfad72..91351d0 100644 --- a/taskfile-build/templates/pvc.yaml +++ b/taskfile-build/templates/pvc.yaml @@ -7,7 +7,7 @@ spec: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: {{ .Values.storageSize | default "1Gi" }} {{- if .Values.storageClassName }} storageClassName: {{ .Values.storageClassName }} {{- end }} diff --git a/taskfile-build/values.yaml b/taskfile-build/values.yaml index d7d22c7..95e190a 100644 --- a/taskfile-build/values.yaml +++ b/taskfile-build/values.yaml @@ -28,6 +28,8 @@ caddyRoot: "" additionalEnvs: {} ## @param storageClassName Set the storage class storageClassName: "" +## @param storageSize Set the persistent volume claim size +storageSize: "1Gi" ## @section Resources requests and limits resources: ## @param resources.requests.memory Memory request for the container