ai:chore: Implement direct types for: DiscoveryEngineSession#11407
ai:chore: Implement direct types for: DiscoveryEngineSession#11407ada-coder-bot wants to merge 2 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
🤖 AI Factory started investigating CI check failures for this pull request. |
8e84b66 to
2065ffd
Compare
Investigating validations failureRun: 28833146491 Investigating unit-tests failureRun: 28833146502
(This report was generated by overseer) |
|
🤖 AI Factory started investigating CI check failures for this pull request. |
|
rebase on top of master |
|
🤖 AI Factory started addressing review feedback for this pull request. |
2065ffd to
b0213d4
Compare
|
I have successfully rebased the branch on top of the latest (This comment was generated by overseer) |
|
🤖 AI Factory started addressing review feedback for this pull request. |
|
Hi @acpana! I have successfully rebased this branch on top of the latest |
|
🤖 AI Factory started addressing review feedback for this pull request. |
b0213d4 to
6a3ef30
Compare
|
Hi @acpana! I have successfully rebased this branch on top of the latest (This comment was generated by overseer) |
| // Immutable. The location of this resource. | ||
| // +required | ||
| Location string `json:"location"` |
There was a problem hiding this comment.
revert changes to thsi file
There was a problem hiding this comment.
remove this file -- you shouldn't be working on two resources at once
|
🤖 AI Factory started addressing review feedback for this pull request. |
6a3ef30 to
f0b5e0b
Compare
ada-coder-bot
left a comment
There was a problem hiding this comment.
Hi @acpana! I have addressed all your feedback:
- Location field: Updated
LocationunderDiscoveryEngineSessionSpecto be a pointer (*string), and updated the identity resolution logic to handle it correctly as a pointer. - Removed second resource: Removed
DiscoveryEngineTargetSitetypes, its CRD, and generated client files completely from this PR so that we are only focusing on one resource (DiscoveryEngineSession) as requested. - Typo correction: Corrected a mapping configuration typo in
generate.shby changingDiscoveryEngineTargetSite:TargetSitetoDiscoveryEngineDataStoreTargetSite:TargetSiteto correctly align with the existingtargetsite_types.go(which definesDiscoveryEngineDataStoreTargetSite). This prevents any duplicate scaffolding of TargetSite resources when running code generation. - Regeneration & Validation: Regenerated the Go clientsets, updated CRD reports, and removed exception lists for target sites. All changes have been cleanly type-checked, formatted, and force-pushed successfully!
(This comment was generated by overseer)
|
🤖 AI Factory started addressing review feedback for this pull request. |
Implementing the initial KRM types, CRD, and IdentityV2 for the `DiscoveryEngineSession` resource using the direct approach. This PR includes: - Base KRM types inside `discoveryenginesession_types.go` - IdentityV2 support inside `discoveryenginesession_identity.go` - Autogenerated K8s deepcopy methods and Custom Resource Definition (CRD) No controller logic or mappers are included, as this PR focuses solely on types and identity setup. Ref: [.agents/greenfield-direct-new-resource-types.md](https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/master/.agents/greenfield-direct-new-resource-types.md) Fix: 9240
f0b5e0b to
8262fe8
Compare
ada-coder-bot
left a comment
There was a problem hiding this comment.
Hi @acpana!
I have addressed the remaining feedback on this PR:
- Reverted identities file: Completely removed the auto-generated
_identities.yamlunderpkg/test/resourcefixture/testdata/basic/ces/v1alpha1/cesapp/cesappbasic/since it belongs to an unrelated resource. - Confirmed that all other feedback (making
Locationa pointer and removing the second resourceDiscoveryEngineTargetSite) remains fully and correctly addressed.
(This comment was generated by overseer)
|
🤖 AI Factory started addressing review feedback for this pull request. |
|
Hi @acpana! Just a quick follow-up to confirm that I have verified the codebase status against your feedback.
I have also verified that (This comment was generated by overseer) |
|
🤖 AI Factory started investigating CI check failures for this pull request. |
Investigating build-images failureRun: 29372000466
Action Taken:
(This report was generated by overseer) |
|
🤖 AI Factory started investigating CI check failures for this pull request. |
1 similar comment
|
🤖 AI Factory started investigating CI check failures for this pull request. |
…uct fields This change fixes compilation errors in the generated DiscoveryEngineSession mappers by: 1. Whitelisting the DocumentMetadata suffix in generatemappercommand.go to ensure that mappers are generated for nested proto types ending in DocumentMetadata. 2. Updating mappergenerator.go to correctly generate pointers/dereferencing when translating between proto Struct messages and KRM apiextensionsv1.JSON fields. 3. Regenerating v1_mapper.generated.go for the discoveryengine service. 4. Regenerating mapper.generated.go for the aiplatform service to align with the Struct mapping generator update.
41e213a to
9159e13
Compare
Investigating validations failureRun: 29380301263 Investigating validate-generated-files failureRun: 29380301331 (This report was generated by overseer) |
|
🤖 AI Factory started investigating CI check failures for this pull request. |
This PR implements the initial KRM types, Custom Resource Definition, and IdentityV2 for the
DiscoveryEngineSessionresource as part of our direct controller greenfield implementations.DiscoveryEngineSessionAPI types indiscoveryenginesession_types.gounderapis/discoveryengine/v1alpha1.apiextensionsv1import resolution step insidegenerate.shto ensure nested protobuf types utilizeapiextensionsv1.JSONcorrectly.DiscoveryEngineSessionIdentityV2 underdiscoveryenginesession_identity.go.DiscoveryEngineSessionandDiscoveryEngineTargetSiteto ensure proper compilation and consistency with generators.This PR was generated by the overseer,overseer,priority/medium,area/direct,step/gen-types,greenfield,chore/ai agent (powered by the gemini-3.5-flash model).
Chore file reference: .agents/greenfield-direct-new-resource-types.md
Fixes #9240