Skip to content

Commit 979b591

Browse files
committed
Add missing crd defaults (#682)
# Description *Please add a description here. This will become the commit message of the merge request later.* Co-authored-by: Malte Sander <[email protected]>
1 parent 6975db3 commit 979b591

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
88

99
- Generate OLM bundle for Release 23.4.0 ([#672]).
1010
- Expose `ZOOKEEPER_CLIENT_PORT` in discovery CM ([#675], [#676]).
11+
- Missing CRD defaults for `status.conditions` field ([#682]).
1112

1213
### Changed
1314

@@ -22,6 +23,7 @@ All notable changes to this project will be documented in this file.
2223
[#675]: https://github.com/stackabletech/zookeeper-operator/pull/675
2324
[#676]: https://github.com/stackabletech/zookeeper-operator/pull/676
2425
[#680]: https://github.com/stackabletech/zookeeper-operator/pull/680
26+
[#682]: https://github.com/stackabletech/zookeeper-operator/pull/682
2527

2628
## [23.4.0] - 2023-04-17
2729

deploy/helm/zookeeper-operator/crds/crds.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,6 +1559,7 @@ spec:
15591559
nullable: true
15601560
properties:
15611561
conditions:
1562+
default: []
15621563
items:
15631564
properties:
15641565
lastTransitionTime:
@@ -1604,8 +1605,6 @@ spec:
16041605
description: An opaque value that changes every time a discovery detail does
16051606
nullable: true
16061607
type: string
1607-
required:
1608-
- conditions
16091608
type: object
16101609
required:
16111610
- spec

rust/crd/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ pub struct ZookeeperClusterStatus {
380380
/// An opaque value that changes every time a discovery detail does
381381
#[serde(default, skip_serializing_if = "Option::is_none")]
382382
pub discovery_hash: Option<String>,
383+
#[serde(default)]
383384
pub conditions: Vec<ClusterCondition>,
384385
}
385386

0 commit comments

Comments
 (0)