Working through some samples in Knative in Action and have run into the following error trying to set minimum CPI and RAM:
Omers-MacBook-Pro-2:Knative development$ kn service update hello-example --request 'cpu=500m,memory=256Mi'
Error: giving up after 3 retries: admission webhook "validation.webhook.serving.knative.dev" denied the request: validation failed: Saw the following changes without a name change (-old +new): spec.template.metadata.name
{*v1.RevisionTemplateSpec}.Spec.PodSpec.Containers[0].Resources.Requests:
-: "map[]"
+: "map[cpu:{i:{value:500 scale:-3} d:{Dec:<nil>} s:500m Format:DecimalSI} memory:{i:{value:268435456 scale:0} d:{Dec:<nil>} s: Format:BinarySI}]"
Run 'kn --help' for usage
I've also tried (as the book suggests):
Omers-MacBook-Pro-2:Knative development$ kn service update hello-example --requests-cpu 500m --requests-memory 256Mi
But this format seems to be deprecated.
Any ideas as to why this may be failing?