Skip to content

PatchStrategy is not required on CRD conditions #37

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

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

JoelSpeed
Copy link
Contributor

Fixes #35

CRDs are not compatible with patchStrategy.

This update adds a way to disable checking for the patchStrategy, and a Forbid option for protobuf and the patchStrategy tags that means we can now suggest to remove the proto and patch strategy if they are present on our API types.

missingMarkers = append(missingMarkers, patchMergeKeyType)
}
case config.ConditionsUsePatchStrategyIgnore:
// If it's there, we don't care.
Copy link
Contributor

Choose a reason for hiding this comment

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

😂

@theobarberbany
Copy link
Contributor

theobarberbany commented Feb 7, 2025

/lgtm

I think this all seems reasonable, the tests pass so LGTM!

@JoelSpeed JoelSpeed merged commit b94e5ed into main Feb 8, 2025
2 checks passed
@JoelSpeed JoelSpeed deleted the fix-crd-conditions-no-patch branch April 9, 2025 21:36
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.

Conditions: CRDs should not require patchStrategy and patchMergeKey on conditions
2 participants