Closed tfheen closed 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.
Was fixed in https://github.com/anguslees/kubernetes-rs/commit/13e65c1c0a80570ec6b2b5451ca94bb701e03161#diff-462a196f3f98945758191e0826c51b95 - needs a new crates.io release..
-> https://crates.io/crates/kubernetes/0.2.0
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.