Skip to content

Mark CanaryMetric.Threshold as omitempty#1047

Merged
stefanprodan merged 1 commit intofluxcd:mainfrom
ecordell:patch-1
Nov 9, 2021
Merged

Mark CanaryMetric.Threshold as omitempty#1047
stefanprodan merged 1 commit intofluxcd:mainfrom
ecordell:patch-1

Conversation

@ecordell
Copy link
Contributor

@ecordell ecordell commented Nov 9, 2021

This is a deprecated field, so serializing it when it's unset doesn't look right.

My motivation for this change was slightly different: making this optional makes the the schema generated by cue get go work correctly.

Signed-off-by: Evan Cordell <cordell.evan@gmail.com>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @ecordell

@stefanprodan stefanprodan merged commit 7f5a9ed into fluxcd:main Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants