We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac3f79b commit e14b29bCopy full SHA for e14b29b
CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
5
## [Unreleased]
6
7
+### Changed
8
+
9
+- `impl Into<Resourcerequirements> for Resources` set's fields to `None` instead of `Some(<empty map>)` when nothing is defined.([#398]).
10
11
+[#398]: https://github.com/stackabletech/operator-rs/pull/398
12
13
## [0.20.0] - 2022-05-13
14
15
### Added
src/commons/resources.rs
@@ -196,8 +196,16 @@ where
196
}
197
198
ResourceRequirements {
199
- limits: Some(limits),
200
- requests: Some(requests),
+ limits: if limits.is_empty() {
+ None
201
+ } else {
202
+ Some(limits)
203
+ },
204
+ requests: if requests.is_empty() {
205
206
207
+ Some(requests)
208
209
210
211
0 commit comments