You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a Deployment, Secret or anything but a Namespace from inside a pod with a correct ServiceAccount attached to it, I get the following error:
TypeError: Cannot read property '0' of undefined
at pathnameParameterNames.reduce (/app/node_modules/swagger-fluent/lib/loader.js:118:35)
at Array.reduce (<anonymous>)
at Root.getPathnameParameters (/app/node_modules/swagger-fluent/lib/loader.js:117:35)
at Root._requestAsync (/app/node_modules/swagger-fluent/lib/loader.js:243:32)
at Root._post (/app/node_modules/swagger-fluent/lib/loader.js:295:17)
...
If I make a ServiceAccount that's bound to a ClusterRole, I'm able to create a Namespace but nothing more.
Here's an example of me trying to create a Deployment:
const Client = require('kubernetes-client').Client
const client = new Client({ version: '1.13' })
var createdObject = await client.apis.apps.v1.namespaces(NAMESPACE_NAME).deployments.post({ body: deployment});
swagger-fluent 5.0.2 was abit broken and in semver range if you did an npm install between 29th and 30th april.
New version should solve it and kubernetes-client v9 uses swagger fluent ^5.0.3
When trying to create a Deployment, Secret or anything but a Namespace from inside a pod with a correct ServiceAccount attached to it, I get the following error:
If I make a ServiceAccount that's bound to a ClusterRole, I'm able to create a Namespace but nothing more.
Here's an example of me trying to create a Deployment:
What I'm doing wrong?
Edit: it seems to be related to #620
The text was updated successfully, but these errors were encountered: