diff --git a/cmd/kyma/init/function/function.go b/cmd/kyma/init/function/function.go index 5252be035..c8cd33928 100644 --- a/cmd/kyma/init/function/function.go +++ b/cmd/kyma/init/function/function.go @@ -56,6 +56,7 @@ Use the flags to specify the initial configuration for your Function or to choos &o.Runtime, "runtime", "r", defaultRuntime, `Flag used to define the environment for running your Function. Use one of these options: - nodejs18 + - nodejs20 - python39 (deprecated) - python312`, ) diff --git a/cmd/kyma/run/function/function.go b/cmd/kyma/run/function/function.go index 9e8dba4ee..107f9b2bb 100644 --- a/cmd/kyma/run/function/function.go +++ b/cmd/kyma/run/function/function.go @@ -123,6 +123,7 @@ func (c *command) workspaceConfig(path string) (workspace.Cfg, error) { supportedRuntimes := map[string]struct{}{ "nodejs18": {}, + "nodejs20": {}, "python39": {}, "python312": {}, } diff --git a/docs/gen-docs/kyma_init_function.md b/docs/gen-docs/kyma_init_function.md index 85cb74400..7680d1446 100644 --- a/docs/gen-docs/kyma_init_function.md +++ b/docs/gen-docs/kyma_init_function.md @@ -24,6 +24,7 @@ kyma init function [flags] --repository-name string The name of the Git repository to be created -r, --runtime string Flag used to define the environment for running your Function. Use one of these options: - nodejs18 + - nodejs20 - python39 (deprecated) - python312 (default "nodejs18") --runtime-image-override string Set custom runtime image base.