Skip to content

Conversation

@86254860
Copy link
Contributor

@86254860 86254860 commented Feb 10, 2026

Summary

  • Add clusters namespace adapter configurations for E2E testing
  • Remove unused file

Testing

  • The newly added adapter configurations can work well for E2E testing case.

Summary by CodeRabbit

  • Tests
    • Updated test data configurations for cluster namespace adapter operations, including new adapter task configuration and Helm values for improved test coverage.

@openshift-ci openshift-ci bot requested review from ciaranRoche and tzhou5 February 10, 2026 03:20
@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Walkthrough

The PR reorganizes HyperFleet adapter configuration files in testdata. It removes an existing adapter-namespace.yaml configuration (~220 lines) and introduces a new directory structure under clusters-cl-namespace/ with three configuration files: adapter-task-config.yaml, adapterconfig.yaml, and values.yaml. These files collectively define a cluster namespace adapter with precondition API calls to fetch cluster details, Kubernetes resource manifests for namespace and service account creation, post-processing logic for status aggregation, and post-action API callbacks to report cluster statuses to the HyperFleet API.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

lgtm, approved

Suggested reviewers

  • xueli181114
  • jsell-rh
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: adding new adapter configurations for the clusters namespace and removing an unused file, with the ticket reference providing context.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
testdata/adapter-configs/clusters-cl-namespace/adapter-task-config.yaml (1)

81-83: Minor comment inconsistency: references jobNamespace instead of clusterNamespace.

The comment mentions "jobNamespace" but the resource defined in this configuration is "clusterNamespace". This appears to be copy-paste residue from another configuration.

📝 Suggested fix
   # Post-processing with valid CEL expressions
-  # This example contains multiple resources, we will only report on the conditions of the jobNamespace not to overcomplicate the example
+  # This example contains multiple resources, we will only report on the conditions of the clusterNamespace not to overcomplicate the example
   post:
testdata/adapter-configs/clusters-cl-namespace/values.yaml (1)

27-37: Minor: Inconsistent YAML indentation.

The resources list under rbac uses 3-space indentation while the rest of the file uses 2-space indentation. While YAML is flexible about indentation amounts, consistency improves readability.

📝 Suggested fix for consistent indentation
 rbac:
-   resources:
+  resources:
     - namespaces
     - serviceaccounts
     - configmaps

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

@yingzhanredhat
Copy link
Contributor

As we discussed, the adapter's config should be under folder <resources_type>-<adapter_name>.Like clusters-cl-namespace. Or nodepools-np-namespace. Resources_type options should be clusters/nodepools

…2E testing and update value to avoid confusion
@yasun1
Copy link
Contributor

yasun1 commented Feb 10, 2026

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Feb 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yasun1

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-merge-bot openshift-merge-bot bot merged commit a2b94f8 into openshift-hyperfleet:main Feb 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants