kube: clean up PersistentVolumeClaims
There's no difference as far as jsonnet is concerned, but it may confuse newbies, as Service and SimpleIngress use double colon for its top-level kube helpers. This also removes any ambiguity as to whether this is manifested in final JSON. So we can make that a convention.
Change-Id: I01ad4ea63f4d5d8ee6e5d41c79637ba186548c6f
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1803
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/hswaw/kube/pretalx.libsonnet b/hswaw/kube/pretalx.libsonnet
index d28aa59..1e340b0 100644
--- a/hswaw/kube/pretalx.libsonnet
+++ b/hswaw/kube/pretalx.libsonnet
@@ -231,8 +231,8 @@
volumeData: kube.PersistentVolumeClaim(pretalx.makeName("-data")) {
metadata+: pretalx.metadata,
- storage: "5Gi",
- storageClass: cfg.storageClassName,
+ storage:: "5Gi",
+ storageClass:: cfg.storageClassName,
},
s3: kube.CephObjectStoreUser(pretalx.makeNameGlobal("-s3")) {
diff --git a/hswaw/paperless/paperless.libsonnet b/hswaw/paperless/paperless.libsonnet
index ca34d5c..93c5413 100644
--- a/hswaw/paperless/paperless.libsonnet
+++ b/hswaw/paperless/paperless.libsonnet
@@ -59,8 +59,8 @@
},
dataVolume: app.ns.Contain(kube.PersistentVolumeClaim("paperless-data")) {
- storage: "100Gi",
- storageClass: cfg.storageClassName,
+ storage:: "100Gi",
+ storageClass:: cfg.storageClassName,
},
deploy: app.ns.Contain(kube.Deployment("paperless")) {