Skip to content

Commit

Permalink
chore: Deprecate Nodejs18 environment
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Mar 19, 2024
1 parent 070be83 commit 0fba6bc
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ spec:
type: object
runtime:
description: Specifies the runtime of the Function. The available
values are `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39`
- deprecated, and `python312`.
values are `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`,
`python39` - deprecated, and `python312`.
enum:
- nodejs16
- nodejs18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
Python312 Runtime = "python312"
// Deprecated: Nodejs16 will be removed soon
NodeJs16 Runtime = "nodejs16"
// Deprecated: Nodejs18 will be removed soon
NodeJs18 Runtime = "nodejs18"
NodeJs20 Runtime = "nodejs20"
)
Expand Down Expand Up @@ -170,7 +171,7 @@ const (

// Defines the desired state of the Function
type FunctionSpec struct {
// Specifies the runtime of the Function. The available values are `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39` - deprecated, and `python312`.
// Specifies the runtime of the Function. The available values are `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`, `python39` - deprecated, and `python312`.
// +kubebuilder:validation:Enum=nodejs16;nodejs18;nodejs20;python39;python312;
Runtime Runtime `json:"runtime"`

Expand Down
6 changes: 3 additions & 3 deletions config/serverless/templates/busola-serverless-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ data:
source: 'spec.source.gitRepository ? "Git Repository" : "Inline Editor"'
- name: header.runtime
source: >-
spec.runtime = 'nodejs16' ? 'Node.js 16 - deprecated' : (spec.runtime = 'python39' ? 'Python 3.9 - deprecated' : (spec.runtime = 'nodejs18' ? 'Node.js 18' : (spec.runtime = 'python312' ? 'Python 3.12' : (spec.runtime = 'nodejs20' ? 'Node.js 20' : spec.runtime))))
spec.runtime = 'nodejs16' ? 'Node.js 16 - deprecated' : (spec.runtime = 'python39' ? 'Python 3.9 - deprecated' : (spec.runtime = 'nodejs18' ? 'Node.js 18 - deprecated' : (spec.runtime = 'python312' ? 'Python 3.12' : (spec.runtime = 'nodejs20' ? 'Node.js 20' : spec.runtime))))
body:
- widget: Tabs
children:
Expand Down Expand Up @@ -422,7 +422,7 @@ data:
list: |-
- name: header.runtime
source: >-
spec.runtime = 'nodejs16' ? 'Node.js 16 - deprecated' : (spec.runtime = 'python39' ? 'Python 3.9 - deprecated' : (spec.runtime = 'nodejs18' ? 'Node.js 18' : (spec.runtime = 'python312' ? 'Python 3.12' : (spec.runtime = 'nodejs20' ? 'Node.js 20' : spec.runtime))))
spec.runtime = 'nodejs16' ? 'Node.js 16 - deprecated' : (spec.runtime = 'python39' ? 'Python 3.9 - deprecated' : (spec.runtime = 'nodejs18' ? 'Node.js 18 - deprecated' : (spec.run - deprecatedtime = 'python312' ? 'Python 3.12' : (spec.runtime = 'nodejs20' ? 'Node.js 20' : spec.runtime))))
- name: header.sourceType
source: 'spec.source.gitRepository ? "Git Repository" : "Inline Editor"'
- name: header.status
Expand Down Expand Up @@ -534,7 +534,7 @@ data:
Runtime: Runtime
'Source Type': Source Type
spec.runtime.nodejs16: Node.js 16 - deprecated
spec.runtime.nodejs18: Node.js 18
spec.runtime.nodejs18: Node.js 18 - deprecated
spec.runtime.nodejs20: Node.js 20
spec.runtime.python39: Python 3.9
spec.runtime.python312: Python 3.12
Expand Down
4 changes: 2 additions & 2 deletions config/serverless/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ spec:
type: object
runtime:
description: Specifies the runtime of the Function. The available
values are `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39`
- deprecated, and `python312`.
values are `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`,
`python39` - deprecated, and `python312`.
enum:
- nodejs16
- nodejs18
Expand Down
2 changes: 1 addition & 1 deletion docs/user/resources/06-10-function-cr.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ spec:
| **resourceConfiguration.​function** | object | Specifies resources requested by the Function's Pod. |
| **resourceConfiguration.​function.​profile** | string | Defines the name of the predefined set of values of the resource. Can't be used together with **Resources**. |
| **resourceConfiguration.​function.​resources** | object | Defines the amount of resources available for the Pod. Can't be used together with **Profile**. For configuration details, see the [official Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/). |
| **runtime** (required) | string | Specifies the runtime of the Function. The available values are `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39` - deprecated, and `python312`. |
| **runtime** (required) | string | Specifies the runtime of the Function. The available values are `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`, `python39` - deprecated, and `python312`. |
| **runtimeImageOverride** | string | Specifies the runtime image used instead of the default one. |
| **scaleConfig** | object | Defines the minimum and maximum number of Function's Pods to run at a time. When it is configured, a HorizontalPodAutoscaler will be deployed and will control the **Replicas** field to scale the Function based on the CPU utilisation. |
| **scaleConfig.​maxReplicas** (required) | integer | Defines the maximum number of Function's Pods to run at a time. |
Expand Down
2 changes: 1 addition & 1 deletion docs/user/technical-reference/05-20-env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Every runtime provides its own unique environment configuration which can be rea
| **FUNC_PORT** | `8080` | The right port a server listens to. |
| **SERVICE_NAMESPACE** | None | The namespace where the right Function exists in a cluster. |
| **KUBELESS_INSTALL_VOLUME** | `/kubeless` | Full path to volume mount with users source code. |
| **FUNC_RUNTIME** | None | The name of the actual runtime. Possible values: `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39` - deprecated, and `python312`. |
| **FUNC_RUNTIME** | None | The name of the actual runtime. Possible values: `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`, `python39` - deprecated, and `python312`. |
| **TRACE_COLLECTOR_ENDPOINT** | None | Full address of OpenTelemetry Trace Collector is exported if the trace collector's endpoint is present. |
| **PUBLISHER_PROXY_ADDRESS** | `http://eventing-publisher-proxy.kyma-system.svc .cluster.local/publish` | Full address of the Publisher Proxy service. |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ See all parameter descriptions.
|----------------------------------------------------------------|:--------:| ---------| ---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **name** | Yes | Function | | Specifies the name of your Function. |
| **namespace** | No | Function | `default` | Defines the namespace in which the Function is created. |
| **runtime** | Yes | Function | | Specifies the execution environment for your Function. The available values are `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39` - deprecated, and `python312`. |
| **runtime** | Yes | Function | | Specifies the execution environment for your Function. The available values are `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`, `python39` - deprecated, and `python312`. |
| **runtimeImageOverride** | No | Function | | Specifies the runtimes image which must be used instead of default one. |
| **labels** | No | Function | | Specifies the Function's Pod labels. |
| **source** | Yes | Function | | Provides details on the type and location of your Function's source code and dependencies. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ See the detailed descriptions of these fields:
|-------|---------------------------------------------------------------------------------------------------------------------------------------------|
| **function-name** | Name of the invoked Function |
| **timeout** | Time, in seconds, after which the system cancels the request to invoke the Function |
| **runtime** | Environment used to run the Function. You can use `nodejs16` - deprecated, `nodejs18`, `nodejs20`, `python39` - deprecated, or `python312`. |
| **runtime** | Environment used to run the Function. You can use `nodejs16` - deprecated, `nodejs18` - deprecated, `nodejs20`, `python39` - deprecated, or `python312`. |
| **memory-limit** | Maximum amount of memory assigned to run a Function |

## HTTP Requests
Expand Down

0 comments on commit 0fba6bc

Please sign in to comment.