From 92998d5f450b330a5cd3f59544e8a1e827217a9d Mon Sep 17 00:00:00 2001 From: Piotr Halama Date: Wed, 6 Mar 2024 12:58:22 +0100 Subject: [PATCH] chore: Remove Nodejs16 environment --- cmd/kyma/init/function/function.go | 5 +---- cmd/kyma/run/function/function.go | 1 - docs/gen-docs/kyma_init_function.md | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/kyma/init/function/function.go b/cmd/kyma/init/function/function.go index 43385de0e..5fa313509 100644 --- a/cmd/kyma/init/function/function.go +++ b/cmd/kyma/init/function/function.go @@ -22,9 +22,7 @@ const ( ) var ( - deprecatedRuntimes = map[string]struct{}{ - "nodejs16": {}, - } + deprecatedRuntimes = map[string]struct{}{} ) type command struct { @@ -55,7 +53,6 @@ Use the flags to specify the initial configuration for your Function or to choos cmd.Flags().StringVarP( &o.Runtime, "runtime", "r", defaultRuntime, `Flag used to define the environment for running your Function. Use one of these options: - - nodejs16 (deprecated) - nodejs18 - python39 - python312`, diff --git a/cmd/kyma/run/function/function.go b/cmd/kyma/run/function/function.go index f6ade7fd0..9e8dba4ee 100644 --- a/cmd/kyma/run/function/function.go +++ b/cmd/kyma/run/function/function.go @@ -122,7 +122,6 @@ func (c *command) workspaceConfig(path string) (workspace.Cfg, error) { } supportedRuntimes := map[string]struct{}{ - "nodejs16": {}, "nodejs18": {}, "python39": {}, "python312": {}, diff --git a/docs/gen-docs/kyma_init_function.md b/docs/gen-docs/kyma_init_function.md index 8878127ec..eb791714b 100644 --- a/docs/gen-docs/kyma_init_function.md +++ b/docs/gen-docs/kyma_init_function.md @@ -23,7 +23,6 @@ kyma init function [flags] --reference string Commit hash or branch name (default "main") --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: - - nodejs16 (deprecated) - nodejs18 - python39 - python312 (default "nodejs18")