Fix env resources getting pruned due to CRD Validation (#1833)

Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
Rahul Bhati
2020-10-16 23:46:50 +05:30
committed by GitHub
co-authored by Vishal
parent fca0a60e5b
commit 9d199c86c5
3 changed files with 75 additions and 29 deletions
+6 -4
View File
@@ -32,8 +32,9 @@ var (
"secrets": secretReferenceSchema,
"configmaps": configMapReferenceSchema,
"resources": {
Type: "object",
Description: "ResourceRequirements describes the compute resource requirements. This is only for newdeploy to set up resource limitation when creating deployment for a function.",
Type: "object",
Description: "ResourceRequirements describes the compute resource requirements. This is only for newdeploy to set up resource limitation when creating deployment for a function.",
XPreserveUnknownFields: boolPtr(true),
},
"InvokeStrategy": invokeStrategySchema,
"functionTimeout": {
@@ -87,8 +88,9 @@ var (
Description: "To enable accessibility of external network for builder/function pod, set to 'true'.",
},
"resources": {
Type: "object",
Description: "The request and limit CPU/MEM resource setting for the pods of the function. Can be overridden at Function in case of newdeployment executor type",
Type: "object",
Description: "The request and limit CPU/MEM resource setting for the pods of the function. Can be overridden at Function in case of newdeployment executor type",
XPreserveUnknownFields: boolPtr(true),
},
"poolsize": {
Type: "integer",