DocumentAIProcessor: Migrate KMSCryptoKeyRef to kmsv1beta1 and normalize references - #13637
lovelace-coder-bot wants to merge 1 commit into
Conversation
…ences Migrate KMS key reference in DocumentAIProcessor from legacy refs.KMSCryptoKeyRef to typed kmsv1beta1.KMSCryptoKeyRef. Invoke common.NormalizeReferences in DocumentAIProcessor direct controller to resolve references before reconciliation. Add custom mappings for KmsKeyRef and update fuzzer and tests. Issue: 13612
|
🤖 AI Factory started investigating CI check failures for this pull request. Note: We recommend waiting for the 'ready-for-human' label before leaving review comments. Comments added while the system is actively working may be associated with outdated commits once a new commit is pushed, causing them to be ignored. |
Investigating fuzz-roundtrippers-2-of-8 failureRun: 36952492186 Investigating presubmit-gatekeeper failureRun: 36952492186 (This report was generated by overseer) |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: anhdle-sso The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Overview
This PR migrates the KMS key reference in
DocumentAIProcessor(documentai.cnrm.cloud.google.com/v1alpha1) from legacyrefs.KMSCryptoKeyRefto typedkmsv1beta1.KMSCryptoKeyRef, and ensures references are normalized during reconciliation in the direct controller.Key Changes
apis/documentai/v1alpha1/documentaiprocessor_types.go, changedspec.kmsKeyRefto*kmsv1beta1.KMSCryptoKeyRef(which implementsrefs.Ref).pkg/controller/direct/documentai/documentaiprocessor_controller.go, invokedcommon.NormalizeReferences(ctx, reader, obj, nil)inAdapterForObject.pkg/controller/direct/documentai/documentaiprocessor_mappings.goto handleKmsKeyReftokms_key_nametranslation between KRM and Proto.DocumentAIProcessorFuzzerindocumentaiprocessor_fuzzer.goto cover.kms_key_name.pkg/controller/direct/documentai/documentaiprocessor_test.goverifying KMS key reference proto mapping and reference normalization.Fixes #13612
This PR was generated by the overseer agent (powered by the gemini-3.7-flash model).