Litmus helps SREs and developers practice chaos engineering in a Cloud-native way. Chaos experiments are published at the ChaosHub (https://hub.litmuschaos.io). Community notes is at https://hackmd.io/a4Zu_sH4TZGeih-xCimi3Q
We are trying to automate the installation of Chaos Infra in different namespaces using Kyverno. When playing around with the API to figure out how the registration flow works, I ran into this issue.
What happened:
When the description field in registerInfra call is empty as the docs say it's not required, the request fails with 500 Internal Server Error.
Setting description to empty solves the problem, so it's not a big deal, but putting this out there so if someone is trying to use API, they don't waste 2 hours trying to figure out why the API is not working as expected.
Context:
We are trying to automate the installation of Chaos Infra in different namespaces using Kyverno. When playing around with the API to figure out how the registration flow works, I ran into this issue.
What happened:
When the description field in
registerInfra
call is empty as the docs say it's not required, the request fails with 500 Internal Server Error.Logs:
This works if you set the description as an empty string
What you expected to happen:
The request should be successful, or the documentation should say description is a mandatory field.
How to reproduce it (as minimally and precisely as possible):
Setting description to empty solves the problem, so it's not a big deal, but putting this out there so if someone is trying to use API, they don't waste 2 hours trying to figure out why the API is not working as expected.