Skip to content

Commit

Permalink
ObjectList now accepts null metadata like upstream k8s does (#1492)
Browse files Browse the repository at this point in the history
* `ObjectList` allow metadata to be empty

Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>

* pin k3d to 1.29 as latest

Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>

---------

Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
  • Loading branch information
aviramha committed May 13, 2024
1 parent 3170f68 commit a6f4337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
fail-fast: false
matrix:
# Run these tests against older clusters as well
k8s: [v1.25, latest]
k8s: [v1.25, v1.29]
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
Expand Down
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(default)]
pub metadata: ListMeta,

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

0 comments on commit a6f4337

Please sign in to comment.