You should be able to specify the resources on a function from the revision spec. This value would then override the default.
must not set the field(s): spec.runLatest.configuration.revisionTemplate.spec.container.resources
RevisionTemplate: knserve.RevisionTemplateSpec{
Spec: knserve.RevisionSpec{
Container: corev1.Container{
Image: function.FunctionImageURL,
Env: envVars,
LivenessProbe: probe,
ReadinessProbe: probe,
Resources: corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: resource.MustParse("100m"),
},
},
},
ContainerConcurrency: 1,
// TODO define a service account per function
ServiceAccountName: buildCfg.ServiceAccount,
},
},
/area API
/kind feature
Expected Behavior
You should be able to specify the resources on a function from the revision spec. This value would then override the default.
Actual Behavior
Steps to Reproduce the Problem
must not set the field(s): spec.runLatest.configuration.revisionTemplate.spec.container.resourcesAdditional Info
related: #1998