Skip to content

Commit 08a81ef

Browse files
authored
fix(ksonnet-util): default variable name secretName (#312)
1 parent 601913c commit 08a81ef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ksonnet-util/kausal.libsonnet

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,9 @@ k {
4545
+ super.fromConfigMap(name, configMapName, configMapItems),
4646

4747
// Shortcut constructor for secret volumes.
48-
fromSecret(name, secret='', secretName='')::
49-
if secretName != ''
50-
then local secret = secretName;
51-
super.withName(name) +
52-
super.mixin.secret.withSecretName(secret),
48+
fromSecret(name, secretName)::
49+
super.withName(name) +
50+
super.mixin.secret.withSecretName(secretName),
5351

5452
// Rename emptyDir to claimName
5553
fromPersistentVolumeClaim(name='', claimName=''):: super.fromPersistentVolumeClaim(name=name, emptyDir=claimName),

0 commit comments

Comments
 (0)