Skip to content

Commit 9ed06b0

Browse files
committed
Add missing crd defaults (#354)
# Description *Please add a description here. This will become the commit message of the merge request later.* Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
1 parent 96c97e0 commit 9ed06b0

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
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- Generate OLM bundle for Release 23.4.0 ([#350]).
10+
- Missing CRD defaults for `status.conditions` field ([#354]).
1011

1112
### Changed
1213

@@ -19,6 +20,7 @@ All notable changes to this project will be documented in this file.
1920
[#350]: https://github.com/stackabletech/hdfs-operator/pull/350
2021
[#351]: https://github.com/stackabletech/hdfs-operator/pull/351
2122
[#353]: https://github.com/stackabletech/hdfs-operator/pull/353
23+
[#354]: https://github.com/stackabletech/hdfs-operator/pull/354
2224

2325
## [23.4.0] - 2023-04-17
2426

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4228,6 +4228,7 @@ spec:
42284228
nullable: true
42294229
properties:
42304230
conditions:
4231+
default: []
42314232
items:
42324233
properties:
42334234
lastTransitionTime:
@@ -4269,8 +4270,6 @@ spec:
42694270
- type
42704271
type: object
42714272
type: array
4272-
required:
4273-
- conditions
42744273
type: object
42754274
required:
42764275
- spec

rust/crd/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ impl Configuration for JournalNodeConfigFragment {
11051105
#[derive(Clone, Default, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
11061106
#[serde(rename_all = "camelCase")]
11071107
pub struct HdfsClusterStatus {
1108+
#[serde(default)]
11081109
pub conditions: Vec<ClusterCondition>,
11091110
}
11101111

0 commit comments

Comments
 (0)