diff --git a/cmd/kyma/init/function/function.go b/cmd/kyma/init/function/function.go index 939ec6efb..688e42c99 100644 --- a/cmd/kyma/init/function/function.go +++ b/cmd/kyma/init/function/function.go @@ -58,6 +58,7 @@ Use the flags to specify the initial configuration for your Function or to choos `Flag used to define the environment for running your Function. Use one of these options: - nodejs16 (deprecated) - nodejs18 + - nodejs20 - python39 (deprecated) - python312`, ) diff --git a/cmd/kyma/run/function/function.go b/cmd/kyma/run/function/function.go index f6ade7fd0..a393a772b 100644 --- a/cmd/kyma/run/function/function.go +++ b/cmd/kyma/run/function/function.go @@ -124,6 +124,7 @@ func (c *command) workspaceConfig(path string) (workspace.Cfg, error) { supportedRuntimes := map[string]struct{}{ "nodejs16": {}, "nodejs18": {}, + "nodejs20": {}, "python39": {}, "python312": {}, } diff --git a/docs/gen-docs/kyma_init_function.md b/docs/gen-docs/kyma_init_function.md index 28794c023..13f6b6841 100644 --- a/docs/gen-docs/kyma_init_function.md +++ b/docs/gen-docs/kyma_init_function.md @@ -25,6 +25,7 @@ kyma init function [flags] -r, --runtime string Flag used to define the environment for running your Function. Use one of these options: - nodejs16 (deprecated) - nodejs18 + - nodejs20 - python39 (deprecated) - python312 (default "nodejs18") --runtime-image-override string Set custom runtime image base.