Skip to content

Commit

Permalink
chore: Add Nodejs20 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Mar 5, 2024
1 parent b160f58 commit 43e5dc5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kyma/init/function/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`)
Expand Down
1 change: 1 addition & 0 deletions cmd/kyma/run/function/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions docs/gen-docs/kyma_init_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 43e5dc5

Please sign in to comment.