Skip to content

Commit c652fbf

Browse files
authored
Add missing crd defaults (#367) (#368)
cherry picked from commit 014f081
1 parent d7130d1 commit c652fbf

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## [23.4.1] - 2023-05-17
6+
7+
### Added
8+
9+
- Missing CRD defaults for `status.conditions` field ([#367]).
10+
11+
[#367]: https://github.com/stackabletech/superset-operator/pull/367
12+
513
## [23.4.0] - 2023-04-17
614

715
### Added

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,7 @@ spec:
15151515
nullable: true
15161516
properties:
15171517
conditions:
1518+
default: []
15181519
items:
15191520
properties:
15201521
lastTransitionTime:
@@ -1556,8 +1557,6 @@ spec:
15561557
- type
15571558
type: object
15581559
type: array
1559-
required:
1560-
- conditions
15611560
type: object
15621561
required:
15631562
- spec

rust/crd/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ impl Configuration for SupersetConfigFragment {
430430
#[derive(Clone, Debug, Default, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
431431
#[serde(rename_all = "camelCase")]
432432
pub struct SupersetClusterStatus {
433+
#[serde(default)]
433434
pub conditions: Vec<ClusterCondition>,
434435
}
435436

0 commit comments

Comments
 (0)