Arnavion / k8s-openapi

Rust definitions of the resource types in the Kubernetes client API
Apache License 2.0
382 stars 40 forks source link

Change int-or-string to declare in way kubernetes expects. Fixes #152 #153

Closed zlepper closed 7 months ago

zlepper commented 8 months ago

I haven't been able to due flock not being available on my windows machine.

I have however patched it into my project where i encountered the issue (#152) originally and it seems to resolve it. At least i can use the PodTemplateSpec to deploy new pods even if the port is specified purely as a number.

Arnavion commented 8 months ago

I haven't been able to due flock not being available on my windows machine.

That's fine. The CRD test doesn't use IntOrString anyway, so it would need to be added and the tests regenerated. I'll get to it some time.

Arnavion commented 7 months ago

Tweaked the tests to handle it and merged. Thanks.