Skip to content

Commit

Permalink
ObjectList now accepts null metadata like upstream k8s does
Browse files Browse the repository at this point in the history
Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
  • Loading branch information
aviramha committed May 12, 2024
1 parent 3170f68 commit 0905901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kube-core/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ where
/// ListMeta - only really used for its `resourceVersion`
///
/// See [ListMeta](k8s_openapi::apimachinery::pkg::apis::meta::v1::ListMeta)
#[serde(deserialize_with = "deserialize_null_as_default")]
pub metadata: ListMeta,

/// The items we are actually interested in. In practice; `T := Resource<T,U>`.
Expand Down

0 comments on commit 0905901

Please sign in to comment.