Closed chaliy closed 4 years ago
not an author but I ran into the same problem before. The idea that you must have something set for name
attr of `V1Container, even if it's an empty str:
V1Container(
name='',
image='alpine:latest',
command=['sh', '-c'],
args=['echo intentional failure; exit 1'])
@chaliy @yxue-kabam is right, the name
of V1Container
is a required attribute as per the kubernetes OpenAPI specification.
See https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json
Closing the issue. Please, reopen the issue if the problem persists.
Code is just a replica of hello-world.yaml
Error response is:
Response by APIs:
It seems like it returns response, but then cannot deserialize. Any idea?