Commit 7783a29
committed
Fix PlacementDecision score field to use pointer type with omitempty
The Score field in ClusterDecision was defined as a bare int64 without omitempty, causing it to always serialize as score:0 even when unset. Change Score from int64 to *int64 with omitempty so the field is omitted from JSON when not explicitly set, consistent with other optional integer fields in the API (e.g. TolerationSeconds, NumberOfClusters).
Signed-off-by: Mike Ng <ming@redhat.com>1 parent 0bf966f commit 7783a29
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments