Arnavion / k8s-openapi

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

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

Closed zlepper closed 9 months ago

zlepper commented 9 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 9 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 9 months ago

Tweaked the tests to handle it and merged. Thanks.