Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add Python 3.12 environment #1976

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/kyma/init/function/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ 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
- python39`,
- python39
- python312`,
)
cmd.Flags().StringVar(&o.SchemaVersion, "schema-version", string(workspace.SchemaVersionDefault), `Version of the config API.`)

Expand Down
7 changes: 4 additions & 3 deletions cmd/kyma/run/function/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ func (c *command) workspaceConfig(path string) (workspace.Cfg, error) {
}

supportedRuntimes := map[string]struct{}{
"nodejs16": {},
"nodejs18": {},
"python39": {},
"nodejs16": {},
"nodejs18": {},
"python39": {},
"python312": {},
}
if _, ok := supportedRuntimes[cfg.Runtime]; !ok {
return workspace.Cfg{}, fmt.Errorf("unsupported runtime: %s", cfg.Runtime)
Expand Down
3 changes: 2 additions & 1 deletion docs/gen-docs/kyma_init_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ 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
- python39 (default "nodejs18")
- python39
- python312 (default "nodejs18")
anoipm marked this conversation as resolved.
Show resolved Hide resolved
--runtime-image-override string Set custom runtime image base.
--schema-version string Version of the config API. (default "v0")
--url string Git repository URL
Expand Down
Loading