Skip to content

Commit

Permalink
Make storage quota customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
fredg02 committed Oct 11, 2024
1 parent c349ddc commit 0723a7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/k8s/statefulset.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,10 @@ local Kube = import "kube.libsonnet";
accessModes: [ "ReadWriteOnce", ],
resources: {
requests: {
storage: "50Gi",
storage: if std.objectHas(config, "storage") && std.objectHas(config.storage, "quota") then
config.storage.quota
else
"50Gi", //default value
},
},
},
Expand Down

0 comments on commit 0723a7e

Please sign in to comment.