Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime nodejs12.x is not supported #208

Open
cscetbon opened this issue May 11, 2020 · 3 comments
Open

runtime nodejs12.x is not supported #208

cscetbon opened this issue May 11, 2020 · 3 comments

Comments

@cscetbon
Copy link
Contributor

On aws we use runtime nodejs12.x to use nodejs 12. However with kubeless we need to use nodejs12 instead. I think nodejs12.x should be accepted.

@andresmgot
Copy link
Contributor

Hi @cscetbon,

The format of the serverless.yaml is not fully compatible with AWS so even if we support their naming of runtimes there will be other functionalities that won't work.

In any case, feel free to add suport to the .x naming in this repo, as long as we support both it shouldn't be an issue (note that kubeless core, will only understand node12, not node12.x so it should be translated before creating the Function object).

@cscetbon
Copy link
Contributor Author

@andresmgot Can you point me where I should start ?

@andresmgot
Copy link
Contributor

andresmgot commented May 14, 2020

As far as I can see there are two places in which the runtime is being read (there might be more, it's a matter of trying):

  • To read the configuration and match it to find the dependency file:

https://github.com/serverless/serverless-kubeless/blob/master/lib/helpers.js#L218

  • To get the runtime definition:

https://github.com/serverless/serverless-kubeless/blob/master/lib/deploy.js#L105

I those two places you would need to transform nodejs12.x to nodejs12 (basically removing the suffix).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants