Skip to content

Commit 82a7982

Browse files
authored
fix(ksonnet-util): allow naming pvc with new(name) (#321)
1 parent b0ac513 commit 82a7982

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ksonnet-util/kausal.libsonnet

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ k {
6363
},
6464

6565
persistentVolumeClaim+:: {
66-
new():: {},
66+
new(name='')::
67+
if 'new' in super
68+
then super.new(name)
69+
else
70+
if name != '' then
71+
{} + super.mixin.metadata.withName(name)
72+
else
73+
{},
6774
},
6875

6976
container:: $.apps.v1.deployment.mixin.spec.template.spec.containersType {

0 commit comments

Comments
 (0)