Skip to content

Commit

Permalink
chore: Add Nodejs20 environment (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Mar 14, 2024
1 parent 59249ca commit 38b715f
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 @@ -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`,
)
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 @@ -123,6 +123,7 @@ func (c *command) workspaceConfig(path string) (workspace.Cfg, error) {

supportedRuntimes := map[string]struct{}{
"nodejs18": {},
"nodejs20": {},
"python39": {},
"python312": {},
}
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 @@ -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.
Expand Down

0 comments on commit 38b715f

Please sign in to comment.