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
apiextensions: promote CRD conversion to beta #78426
apiextensions: promote CRD conversion to beta #78426
Conversation
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/retest |
Looks correct to me. Do we typically include a test to ensure that the feature is disabled if the gate is turned off for beta features? (not sure one is needed, just curious what our conventions are) |
/retest |
@@ -343,7 +350,8 @@ func validateCustomResourceConversion(conversion *apiextensions.CustomResourceCo | |||
// ValidateCustomResourceDefinitionSpecUpdate statically validates | |||
func ValidateCustomResourceDefinitionSpecUpdate(spec, oldSpec *apiextensions.CustomResourceDefinitionSpec, established bool, fldPath *field.Path) field.ErrorList { | |||
requireRecognizedVersion := oldSpec.Conversion == nil || hasValidConversionReviewVersionOrEmpty(oldSpec.Conversion.ConversionReviewVersions) | |||
allErrs := validateCustomResourceDefinitionSpec(spec, requireRecognizedVersion, fldPath) | |||
|
|||
allErrs := validateCustomResourceDefinitionSpec(spec, requireRecognizedVersion, conversionAndPreserveUnknownFields(oldSpec), fldPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webhook conversion was previously alpha, I don't think we have to do this check. let's follow-up to remove this and always require preserveUnknownFields:false
when using webhook conversion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up #78501
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
needs a rebase |
f7cb4e6
to
dc6d5b9
Compare
New changes are detected. LGTM label has been removed. |
Rebased. |
dc6d5b9
to
c692875
Compare
New changes are detected. LGTM label has been removed. |
/retest |
Flake #72493 |
Requires #77743.