-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MGMT-18437: Use consumer label on ACI for data collection #117
MGMT-18437: Use consumer label on ACI for data collection #117
Conversation
Upgrade to version v0.0.0-20250331101551-1de1416d9f90 to pull in the new AgentClusterInstall consumer label.
To identify this cluster is being used by the CAPI Openshift Assisted controllers, we'll add the consumer label on the AgentClusterInstall with the value set to this controller's name.
@CrystalChun: This pull request references MGMT-18437 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe changes update the ClusterDeployment controller to assign an additional label to the AgentClusterInstall (ACI) object. The controller now sets Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Suite
participant Controller as ClusterDeployment Controller
participant ACI as AgentClusterInstall
Test->>Controller: Invoke reconciliation process
Controller->>ACI: Create ACI object
Controller->>ACI: Set labels (including ClusterConsumerLabel)
ACI-->>Controller: Return labeled ACI object
Controller-->>Test: Processed outcome with proper labeling
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)level=warning msg="The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar." 📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (10)
📒 Files selected for processing (3)
🧰 Additional context used🧬 Code Definitions (1)controlplane/internal/controller/clusterdeployment_controller_test.go (1)
🔇 Additional comments (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@CrystalChun: This pull request references MGMT-18437 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CrystalChun, rccrdpccl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5300f6d
into
openshift-assisted:master
When collecting on-premises data, it's useful to know when a cluster is being used by this controller. This adds the consumer label to the AgentClusterInstall so that the cluster may be identified when data is collected from assisted-service.
Summary by CodeRabbit
New Features
Tests
Chores