Skip to content

Commit 91bbd26

Browse files
authored
Use upstream ksonnet-lib (#252)
* Backport fromPersistentVolumeClaim fix Ref: ksonnet/ksonnet-lib#150 * Use upstream ksonnet-lib
1 parent b7d0399 commit 91bbd26

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

ksonnet-util/jsonnetfile.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": 1,
3+
"dependencies": [
4+
{
5+
"source": {
6+
"git": {
7+
"remote": "https://github.com/ksonnet/ksonnet-lib",
8+
"subdir": "ksonnet.beta.4"
9+
}
10+
},
11+
"version": "master"
12+
}
13+
],
14+
"legacyImports": true
15+
}

ksonnet-util/kausal.libsonnet

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Override defaults paramters for objects in the ksonnet libs here.
2-
local k = import 'k.libsonnet';
2+
local k = import 'ksonnet.beta.4/k.libsonnet';
33

44
k {
55
_config+:: {
@@ -44,6 +44,9 @@ k {
4444
fromSecret(name, secret)::
4545
super.withName(name) +
4646
super.mixin.secret.withSecretName(secret),
47+
48+
// Rename emptyDir to claimName
49+
fromPersistentVolumeClaim(name='', claimName=''):: super.fromPersistentVolumeClaim(name=name, emptyDir=claimName),
4750
},
4851

4952
volumeMount:: $.core.v1.container.volumeMountsType {

0 commit comments

Comments
 (0)