diff --git a/cmd/kyma/init/function/function.go b/cmd/kyma/init/function/function.go index b8e086ff4..43385de0e 100644 --- a/cmd/kyma/init/function/function.go +++ b/cmd/kyma/init/function/function.go @@ -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.`) diff --git a/cmd/kyma/run/function/function.go b/cmd/kyma/run/function/function.go index 6224523c2..f6ade7fd0 100644 --- a/cmd/kyma/run/function/function.go +++ b/cmd/kyma/run/function/function.go @@ -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) diff --git a/docs/gen-docs/kyma_init_function.md b/docs/gen-docs/kyma_init_function.md index 1fc6248d0..8878127ec 100644 --- a/docs/gen-docs/kyma_init_function.md +++ b/docs/gen-docs/kyma_init_function.md @@ -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") --runtime-image-override string Set custom runtime image base. --schema-version string Version of the config API. (default "v0") --url string Git repository URL