Added support for setting bodyParser limit param via environment variable (#1618)

In the NodeJs environment, the body-parser was set to 1MB, this change makes it configurable with an env variable.
This commit is contained in:
Rahul Bhati
2020-05-24 00:16:03 +05:30
committed by GitHub
parent d4e1cd4f1e
commit 9dd084810f
7 changed files with 157 additions and 4 deletions
@@ -0,0 +1,54 @@
include:
- hello/*
kind: ArchiveUploadSpec
name: hello-dBc6
---
apiVersion: fission.io/v1
kind: Package
metadata:
creationTimestamp: null
name: hello-a98928ed-6b06-482f-9eb5-541540e714b1
namespace: default
spec:
deployment:
checksum: {}
environment:
name: node
namespace: default
source:
checksum: {}
type: url
url: archive://hello-dBc6
status:
buildstatus: pending
lastUpdateTimestamp: "2020-05-20T14:12:17Z"
---
apiVersion: fission.io/v1
kind: Function
metadata:
creationTimestamp: null
name: hello
namespace: default
spec:
InvokeStrategy:
ExecutionStrategy:
ExecutorType: poolmgr
MaxScale: 0
MinScale: 0
SpecializationTimeout: 120
TargetCPUPercent: 0
StrategyType: execution
configmaps: null
environment:
name: node
namespace: default
functionTimeout: 60
package:
functionName: hello
packageref:
name: hello-a98928ed-6b06-482f-9eb5-541540e714b1
namespace: default
resources: {}
secrets: null