Skip to content

Commit 404b295

Browse files
committed
Bump kube to 0.78.0 and k8s-openapi to 0.17.0. Bump k8s version (#533)
1 parent 329c7cd commit 404b295

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ All notable changes to this project will be documented in this file.
99
### Changed
1010

1111
- Disable Vector agent by default ([#526]).
12+
- Bump kube to 0.78.0 and k8s-openapi to 0.17.0. Bump k8s version from 1.24 to 1.26 ([#533]).
1213

1314
[#526]: https://github.com/stackabletech/operator-rs/pull/526
15+
[#533]: https://github.com/stackabletech/operator-rs/pull/533
1416

1517
## [0.30.1] - 2022-12-19
1618

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ clap = { version = "4.0.32", features = ["derive", "cargo", "env"] }
1313
const_format = "0.2.30"
1414
either = "1.8.0"
1515
futures = "0.3.25"
16-
json-patch = "0.2.6"
17-
k8s-openapi = { version = "0.16.0", default-features = false, features = ["schemars", "v1_24"] }
18-
kube = { version = "0.76.0", features = ["jsonpatch", "runtime", "derive"] }
16+
json-patch = "0.3.0"
17+
k8s-openapi = { version = "0.17.0", default-features = false, features = ["schemars", "v1_26"] }
18+
kube = { version = "0.78.0", features = ["jsonpatch", "runtime", "derive"] }
1919
lazy_static = "1.4.0"
2020
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.4.0" }
2121
rand = "0.8.5"

src/builder/pod/container.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ mod tests {
359359
]
360360
.into(),
361361
),
362+
..ResourceRequirements::default()
362363
};
363364

364365
let container = ContainerBuilder::new("testcontainer")

src/commons/resources.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,10 @@ impl<T, K> Into<ResourceRequirements> for Resources<T, K> {
310310
} else {
311311
Some(requests)
312312
},
313+
// Dynamic resource allocation by using resourceClaims was added as *alpha* feature in Kubernetes 1.26.
314+
// We might want to support it after a while, but currently all the customers would need to active
315+
// the `DynamicResourceAllocation` feature gate.
316+
claims: None,
313317
}
314318
}
315319
}

0 commit comments

Comments
 (0)