mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 09:11:03 +02:00
Finish template mods for k8s
This commit is contained in:
parent
d0db893a95
commit
9479f4401d
4 changed files with 57 additions and 8 deletions
|
|
@ -26,7 +26,7 @@
|
|||
function(vol, mnt)
|
||||
self + {
|
||||
volumes: super.volumes + [{
|
||||
volume: vol.name, mount: mnt
|
||||
volume: vol, mount: mnt
|
||||
}]
|
||||
},
|
||||
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
(if std.length(container.volumes) > 0 then
|
||||
{
|
||||
volumes: [
|
||||
"%s:%s" % [vol.volume, vol.mount]
|
||||
"%s:%s" % [vol.volume.name, vol.mount]
|
||||
for vol in container.volumes
|
||||
]
|
||||
}
|
||||
|
|
@ -112,13 +112,26 @@
|
|||
|
||||
},
|
||||
|
||||
// FIXME: For K8s
|
||||
configVolume:: function(name)
|
||||
configVolume:: function(name, dir, parts)
|
||||
{
|
||||
|
||||
local volume = self,
|
||||
|
||||
name: name,
|
||||
name: dir,
|
||||
|
||||
with_size:: function(size) self + { size: size },
|
||||
|
||||
add:: function() {
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
secretVolume:: function(name, dir, parts)
|
||||
{
|
||||
|
||||
local volume = self,
|
||||
|
||||
name: dir,
|
||||
|
||||
with_size:: function(size) self + { size: size },
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue