Skip to content

Commit

Permalink
Add missing crd defaults (#471)
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 <malte.sander.it@gmail.com>
  • Loading branch information
maltesander and maltesander committed May 12, 2023
1 parent bc014a4 commit 8d6f3e4
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.

- Added support for NiFi versions 1.20.0 and 1.21.0 ([#464]).
- Generate OLM bundle for Release 23.4.0 ([#467]).
- Missing CRD defaults for `status.conditions` field ([#471]).

### Changed

Expand All @@ -25,6 +26,7 @@ All notable changes to this project will be documented in this file.
[#464]: https://github.com/stackabletech/nifi-operator/pull/464
[#466]: https://github.com/stackabletech/nifi-operator/pull/466
[#467]: https://github.com/stackabletech/nifi-operator/pull/467
[#471]: https://github.com/stackabletech/nifi-operator/pull/471

## [23.4.0] - 2023-04-17

Expand Down
3 changes: 1 addition & 2 deletions deploy/helm/nifi-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2969,6 +2969,7 @@ spec:
nullable: true
properties:
conditions:
default: []
items:
properties:
lastTransitionTime:
Expand Down Expand Up @@ -3013,8 +3014,6 @@ spec:
deployed_version:
nullable: true
type: string
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 @@ -205,6 +205,7 @@ pub enum NifiRole {
#[derive(Clone, Debug, Default, Deserialize, JsonSchema, Serialize)]
pub struct NifiStatus {
pub deployed_version: Option<String>,
#[serde(default)]
pub conditions: Vec<ClusterCondition>,
}

Expand Down

0 comments on commit 8d6f3e4

Please sign in to comment.