diff --git a/cmd/kyma/init/function/function.go b/cmd/kyma/init/function/function.go index b8e086ff4..f04ed97b1 100644 --- a/cmd/kyma/init/function/function.go +++ b/cmd/kyma/init/function/function.go @@ -57,6 +57,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`, ) cmd.Flags().StringVar(&o.SchemaVersion, "schema-version", string(workspace.SchemaVersionDefault), `Version of the config API.`) diff --git a/cmd/kyma/run/function/function.go b/cmd/kyma/run/function/function.go index 6224523c2..9bc5e17c9 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": {}, } if _, ok := supportedRuntimes[cfg.Runtime]; !ok { diff --git a/docs/gen-docs/kyma_init_function.md b/docs/gen-docs/kyma_init_function.md index 1fc6248d0..58488275e 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 (default "nodejs18") --runtime-image-override string Set custom runtime image base. --schema-version string Version of the config API. (default "v0")