Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 510a84f

Browse files
Move tolerations to PodTemplateSpec (#229)
Right now the tolerations aren't included in the yaml of the Pods created by the Deployment. Moving them into the PodTemplateSpec is fixing this.
1 parent 14f490e commit 510a84f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/deploy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function getFunctionDescription(
192192
funcs.spec.deployment.spec.template.spec.affinity = affinity;
193193
}
194194
if (tolerations) {
195-
funcs.spec.deployment.spec.tolerations = tolerations;
195+
funcs.spec.deployment.spec.template.spec.tolerations = tolerations;
196196
}
197197
}
198198
return funcs;

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-kubeless",
3-
"version": "0.11.1",
3+
"version": "0.11.2",
44
"description": "This plugin enables support for Kubeless within the [Serverless Framework](https://github.com/serverless).",
55
"main": "index.js",
66
"directories": {
@@ -46,4 +46,4 @@
4646
"request": "^2.85.0",
4747
"sinon": "^4.0.0"
4848
}
49-
}
49+
}

test/kubelessDeploy.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,9 @@ describe('KubelessDeploy', () => {
11431143
containers: [{
11441144
name: functionName,
11451145
}],
1146+
tolerations,
11461147
},
11471148
},
1148-
tolerations,
11491149
},
11501150
},
11511151
}));
@@ -1178,9 +1178,9 @@ describe('KubelessDeploy', () => {
11781178
containers: [{
11791179
name: functionName,
11801180
}],
1181+
tolerations,
11811182
},
11821183
},
1183-
tolerations,
11841184
},
11851185
},
11861186
}));

0 commit comments

Comments
 (0)