Skip to content

Commit

Permalink
Add missing crd defaults (#588)
Browse files Browse the repository at this point in the history
# Description

*Please add a description here. This will become the commit message of the merge request later.*



Co-authored-by: Malte Sander <[email protected]>
  • Loading branch information
maltesander and maltesander committed May 12, 2023
1 parent 3821770 commit 6065e79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.

- Generate OLM bundle for Release 23.4.0 ([#585]).
- Fixed upgrade test on Openshift ([#585]).
- Missing CRD defaults for `status.conditions` field ([#588]).

### Changed

Expand All @@ -18,6 +19,7 @@ All notable changes to this project will be documented in this file.
[#583]: https://github.com/stackabletech/kafka-operator/pull/583
[#584]: https://github.com/stackabletech/kafka-operator/pull/584
[#585]: https://github.com/stackabletech/kafka-operator/pull/585
[#588]: https://github.com/stackabletech/kafka-operator/pull/588

## [23.4.0] - 2023-04-17

Expand Down
3 changes: 1 addition & 2 deletions deploy/helm/kafka-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,7 @@ spec:
nullable: true
properties:
conditions:
default: []
items:
properties:
lastTransitionTime:
Expand Down Expand Up @@ -1556,8 +1557,6 @@ spec:
- type
type: object
type: array
required:
- conditions
type: object
required:
- spec
Expand Down
1 change: 1 addition & 0 deletions rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ impl Configuration for KafkaConfigFragment {
#[derive(Clone, Default, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct KafkaClusterStatus {
#[serde(default)]
pub conditions: Vec<ClusterCondition>,
}

Expand Down

0 comments on commit 6065e79

Please sign in to comment.