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
If a user passes in a custom config as an object(that is in the valid kube config format), they will get this error:
TypeError: kubeconfig.getCurrentContext is not a function
at convertKubeconfig (/var/task/node_modules/kubernetes-client/backends/request/config.js:16:30)
at new Request (/var/task/node_modules/kubernetes-client/backends/request/client.js:118:26)
at openshiftClient (/var/task/node_modules/openshift-rest-client/lib/openshift-rest-client.js:138:30)
at setup (/var/task/node_modules/nodeshift/lib/nodeshift-config.js:35:28)
at async run (/var/task/node_modules/nodeshift/bin/cli.js:36:20)
at async Express.openShiftBuild (/var/task/openshift/openShiftBuild.js:53:3)
at async Express.deploy (/var/task/serverless.js:68:5)
at async Runtime.module.exports [as handler] (/opt/nodejs/node_modules/@serverless/core/handler.js:273:24)
If a user passes in a custom config as an object(that is in the valid kube config format), they will get this error:
It is happening here: https://github.com/nodeshift/openshift-rest-client/blob/master/lib/openshift-rest-client.js#L145
It looks like we just need to do this instead:
If they don't add an
apiVersion
orkind
then the underlying library errors, so we could inject those properties if they are not there?The text was updated successfully, but these errors were encountered: