Open iliapolo opened 4 months ago
This is because of https://github.com/cdk8s-team/cdk8s/issues/2167.
As a workaround, we can apply json patches:
obj = ApiObject(self, ...)
obj.add_json_patch(JsonPatch.add('/spec', {}))
obj.add_json_patch(JsonPatch.add('/spec/foo', 'bar'))
Description of the bug:
The
ApiObject
class in python doesn't allow arbitrary key values, which means it doesn't allow configuringspec
,data
, or whatever else belongs in the body of a resource.Reproduction Steps:
Error Log:
This is :bug: Bug Report