Skip to content

Add omitempty to statuses to allow better marshalling#1621

Merged
stefanprodan merged 1 commit intofluxcd:mainfrom
hernit:main
Mar 25, 2024
Merged

Add omitempty to statuses to allow better marshalling#1621
stefanprodan merged 1 commit intofluxcd:mainfrom
hernit:main

Conversation

@hernit
Copy link
Contributor

@hernit hernit commented Mar 25, 2024

We are using flagger programmatically, and are marshalling the resource back out for deployment. The lack of omitempty in flagger resources such as the canary is causing issues with our validation through kubeconform, as the null in lastTransitionTime does not conform with date-time.

Cross referencing with other Kubernetes CRDs show most of them allow and omit empty status, so it will be good have something similar here.

@hernit hernit marked this pull request as ready for review March 25, 2024 12:40
@hernit hernit requested a review from stefanprodan as a code owner March 25, 2024 12:41
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

@stefanprodan stefanprodan merged commit f3be47d into fluxcd:main Mar 25, 2024
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