Skip to content

How is the runtime of a function being determined? #3095

Answered by TomerShor
csong16 asked this question in Q&A
Discussion options

You must be logged in to vote

@csong16
I have managed to reproduce with a different bas image.

When setting a custom base image, the runtime version is determined by the runtime that's pre-installed in the given image.
Meaning - when a custom image is given, the value in spec.runtime is essentially ignored.
This is done because we can't (and won't) install the required runtime version on the given base image.

I agree that this is a bit confusing, and we will add a log that communicates this information when deployed a function with a custom image.

Bottom line - if you want to use a custom base image and a specific runtime version, make sure your given image has this version already installed.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@csong16
Comment options

Answer selected by csong16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants