Skip to content

fix: Add validation for componentInfos in OpsDefinition controller#10155

Open
destinyoooo wants to merge 2 commits into
apecloud:mainfrom
destinyoooo:validate
Open

fix: Add validation for componentInfos in OpsDefinition controller#10155
destinyoooo wants to merge 2 commits into
apecloud:mainfrom
destinyoooo:validate

Conversation

@destinyoooo
Copy link
Copy Markdown

What this PR does / why we need it:

This PR adds comprehensive validation logic to the OpsDefinition controller to verify the componentInfos field before marking an OpsDefinition as Available. Previously, the controller had a TODO comment indicating that validation for serviceKind, connectionCredentialName, and serviceName was missing, which could lead to OpsDefinitions being marked as Available even with invalid or non-existent references.

@destinyoooo destinyoooo requested review from a team and wangyelei as code owners April 22, 2026 07:14
@apecloud-bot
Copy link
Copy Markdown
Collaborator

Auto Cherry-pick Instructions

Usage:
  - /nopick: Not auto cherry-pick when PR merged.
  - /pick: release-x.x [release-x.x]: Auto cherry-pick to the specified branch when PR merged.

Example:
  - /nopick
  - /pick release-1.1

@github-actions github-actions Bot added the size/M Denotes a PR that changes 30-99 lines. label Apr 22, 2026
@apecloud-bot apecloud-bot added the pre-approve Fork PR Pre Approve Test label Apr 22, 2026
Comment thread controllers/operations/opsdefinition_controller.go Outdated
Comment thread controllers/operations/opsdefinition_controller.go
Comment thread controllers/operations/opsdefinition_controller.go Outdated
Comment thread controllers/operations/opsdefinition_controller.go
Comment thread controllers/operations/opsdefinition_controller.go Outdated
@apecloud-bot apecloud-bot added pre-approve Fork PR Pre Approve Test and removed pre-approve Fork PR Pre Approve Test labels Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pre-approve Fork PR Pre Approve Test size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants