kube: add .volume field on PVCs and ConfigMaps
Change-Id: I93eec44bd6df4ecb0044a4797faa9bf6fd26802d
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1811
Reviewed-by: q3k <q3k@hackerspace.pl>
diff --git a/bgpwtf/cccampix/kube/ix.libsonnet b/bgpwtf/cccampix/kube/ix.libsonnet
index 4e2d610..295cc3d 100644
--- a/bgpwtf/cccampix/kube/ix.libsonnet
+++ b/bgpwtf/cccampix/kube/ix.libsonnet
@@ -92,7 +92,7 @@
template+: {
spec+: {
volumes_: {
- cache: kube.PersistentVolumeClaimVolume(ix.octorpki.cache),
+ cache: ix.octorpki.cache.volume,
},
containers_: {
octorpki: kube.Container(ix.name("octorpki")){
@@ -241,8 +241,8 @@
alice: ix.component("alice") {
port: 7340,
volumes: {
- config: kube.ConfigMapVolume(ix.alice.configMap),
- theme: kube.ConfigMapVolume(ix.alice.themeMap),
+ config: ix.alice.configMap.volume,
+ theme: ix.alice.themeMap.volume,
},
volumeMounts: {
config: {