Skip to content

Commit

Permalink
Add missing crd defaults (#471) (#472)
Browse files Browse the repository at this point in the history
cherry picked from commit 8d6f3e4
  • Loading branch information
maltesander authored May 15, 2023
1 parent 8d8f6e6 commit aa2b9c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [23.4.1] - 2023-05-17

- Missing CRD defaults for `status.conditions` field ([#471]).

[#471]: https://github.com/stackabletech/nifi-operator/pull/471

## [23.4.0] - 2023-04-17

### Added
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 aa2b9c1

Please sign in to comment.