Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add omitempty to statuses to allow better marshalling #1621

Merged
merged 1 commit into from
Mar 25, 2024

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
17 checks passed
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