anguslees / kubernetes-rs

Kubernetes API client library for Rust
Apache License 2.0
66 stars 4 forks source link

matchExpressions are optional in label selectors #11

Closed tfheen closed 6 years ago

tfheen commented 6 years ago

The docs does not say anything explicitly about it, but empirical investigations into what k8s 1.10 returns, matchExpressions are optional, and a list in labelSelectors. See https://v1-10.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#labelselector-v1-meta for the claim about them being a list/array.

anguslees commented 6 years ago

Was fixed in https://github.com/anguslees/kubernetes-rs/commit/13e65c1c0a80570ec6b2b5451ca94bb701e03161#diff-462a196f3f98945758191e0826c51b95 - needs a new crates.io release..

anguslees commented 6 years ago

-> https://crates.io/crates/kubernetes/0.2.0