Skip to content

feat: add e2e test artifacts for componentConfig and annotations (EP#1898)#129

Open
swghosh wants to merge 3 commits intoopenshift:ai-staging-release-1.0from
swghosh:feature/e2e-tests-1898-63840
Open

feat: add e2e test artifacts for componentConfig and annotations (EP#1898)#129
swghosh wants to merge 3 commits intoopenshift:ai-staging-release-1.0from
swghosh:feature/e2e-tests-1898-63840

Conversation

@swghosh
Copy link
Copy Markdown
Member

@swghosh swghosh commented Apr 6, 2026

Summary

  • Generates comprehensive e2e test artifacts for the componentConfig and annotations feature from Enhancement Proposal #1898
  • test-cases.md: 10 test scenarios covering custom annotations, componentConfigs, revisionHistoryLimit, overrideEnv, and CRD validation constraints
  • execution-steps.md: Step-by-step oc commands for manual e2e validation
  • e2e_component_config_test.go: Ginkgo e2e tests matching existing patterns (dynamic client, Eventually assertions)
  • e2e-suggestions.md: Prioritized scenario recommendations with coverage analysis

Depends on

Test plan

  • Review generated test cases for correctness and completeness
  • Copy e2e_component_config_test.go to test/e2e/ directory
  • Run e2e tests against a live OpenShift cluster with the operator installed
  • Verify annotations are applied to operand deployments
  • Verify revisionHistoryLimit is applied per-component
  • Verify overrideEnv is applied to target containers
  • Verify CRD validation rejects reserved annotation and env var prefixes

🤖 Generated with Claude Code

swghosh and others added 3 commits April 6, 2026 13:48
…sConfig

Extend the ExternalSecretsConfig API with componentConfig and annotations
fields as specified in enhancement proposal #1898 (ESO-266).

New types added:
- ComponentConfig: per-component deployment overrides and env vars
- DeploymentConfig: deployment-level settings (revisionHistoryLimit)
- Annotation: custom annotation key-value pairs

New ComponentName enum values: Webhook, CertController

Includes CEL validation for reserved annotation prefixes and env var names,
integration test suite coverage, regenerated deepcopy and CRD manifests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add controller reconciliation logic for the componentConfig and annotations
API fields introduced in EP #1898:

- applyAnnotationsToDeployment: applies custom annotations (with reserved
  prefix filtering) to deployment and pod template metadata
- applyComponentConfigToDeployment: applies per-component overrides
  including revisionHistoryLimit and overrideEnv to target deployments
- Maps ComponentName enum values to deployment assets and container names

Integrates with existing getDeploymentObject pipeline so all deployment
reconciliation flows (create and update) apply the new configuration.

Includes comprehensive unit tests for all new functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…1898)

Generate e2e test artifacts for the componentConfig and annotations
feature introduced in EP #1898:

- test-cases.md: 10 test scenarios covering annotations, componentConfigs,
  revisionHistoryLimit, overrideEnv, and validation constraints
- execution-steps.md: step-by-step oc commands for manual execution
- e2e_component_config_test.go: Ginkgo e2e tests matching existing patterns
  (dynamic client, Eventually assertions, waitForESCReady helper)
- e2e-suggestions.md: prioritized scenario recommendations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 6, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 14cb966f-bd30-4c0c-b181-c4a2f581a30c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot requested review from TrilokGeer and mytreya-rh April 6, 2026 08:27
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Apr 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: swghosh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant