Skip to content

OCPCLOUD-3442: Migrate four controllers to per-controller condition reporting - #577

Open
stefanonardo wants to merge 1 commit into
openshift:mainfrom
stefanonardo:OCPCLOUD-3442
Open

OCPCLOUD-3442: Migrate four controllers to per-controller condition reporting#577
stefanonardo wants to merge 1 commit into
openshift:mainfrom
stefanonardo:OCPCLOUD-3442

Conversation

@stefanonardo

@stefanonardo stefanonardo commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Migrate CoreCluster, InfraCluster, Kubeconfig, and SecretSync controllers from ClusterOperatorStatusClient (merge-patch, shared top-level conditions) to ControllerResultGenerator (server-side apply, per-controller prefixed conditions)
  • Each controller now reports its own Available and Progressing conditions on the ClusterOperator object, which are aggregated into top-level conditions by the ClusterOperator controller
  • Delete ClusterOperatorStatusClient and GetClusterOperatorStatusClient — no remaining consumers
  • Add ClusterOperator watch to SecretSync for initial reconciliation at startup — on platforms where the source secret does not exist (e.g. metal3, where CAPM3 reads user data directly via a namespace-qualified SecretReference), report success instead of blocking the install

🤖 Generated with Claude Code

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 4, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 4, 2026

Copy link
Copy Markdown

@stefanonardo: This pull request references OCPCLOUD-3442 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 "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Migrate CoreCluster, InfraCluster, Kubeconfig, and SecretSync controllers from ClusterOperatorStatusClient (merge-patch, shared top-level conditions) to ControllerResultGenerator (server-side apply, per-controller prefixed conditions)
  • Each controller now reports its own Available and Progressing conditions on the ClusterOperator object, which are aggregated into top-level conditions by the ClusterOperator controller
  • Delete ClusterOperatorStatusClient and GetClusterOperatorStatusClient — no remaining consumers

Depends on #574

Test plan

  • make build passes
  • make lint reports 0 issues
  • Unit tests pass for all affected packages: corecluster, infracluster, kubeconfig, secretsync, clusteroperator
  • Condition assertions added to all four controllers verifying Available/Progressing are written to ClusterOperator on success and error paths
  • ClusterOperator aggregation tests updated with all six sub-controllers

🤖 Generated with Claude Code

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.

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Controllers now receive manager-provided dependencies and use standardized reconciliation results to write ClusterOperator status. Core, infrastructure, kubeconfig, and secret synchronization conditions are aggregated. Tests now validate sub-controller conditions and error states.

Changes

Controller status reconciliation migration

Layer / File(s) Summary
Manager client wiring and status client removal
cmd/capi-controllers/main.go, pkg/commoncmdoptions/commonoptions.go, pkg/operatorstatus/operator_status.go
Controller setup passes manager dependencies and managed namespaces. The obsolete ClusterOperator status client API was removed.
Core and infrastructure reconciliation
pkg/controllers/corecluster/*, pkg/controllers/infracluster/*
Core and infrastructure controllers embed client.Client, generate ReconcileResult values, and write ClusterOperator status. Tests validate success and progressing sub-conditions.
Secret synchronization and kubeconfig results
pkg/controllers/secretsync/*, pkg/controllers/kubeconfig/*
Secret synchronization and kubeconfig reconciliation use standardized result generators and explicit status outcomes. Tests cover successful, waiting, and error states.
ClusterOperator condition aggregation
pkg/controllers/clusteroperator/*
Condition aggregation now includes core cluster, infrastructure cluster, kubeconfig, and secret synchronization controllers. Tests use shared successful baselines and targeted overrides.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Controller
  participant ResultGenerator
  participant WriteClusterOperatorStatus
  participant ClusterOperator
  Controller->>ResultGenerator: create reconciliation result
  ResultGenerator->>WriteClusterOperatorStatus: provide conditions
  WriteClusterOperatorStatus->>ClusterOperator: persist status
Loading

Possibly related PRs

Suggested reviewers: racheljpg, mdbooth

🚥 Pre-merge checks | ✅ 13 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.64% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Test Structure And Quality ⚠️ Warning CoreCluster and InfraCluster shutdowns use unbounded <-mgrDone; many cluster waits omit explicit timeouts/messages, and kubeconfig cleanup passes an initially empty Secret instead of the generated... Use context-bounded Eventually for manager shutdowns, add explicit timeouts and diagnostic messages, and clean the actual generated kubeconfig Secret and every fixture.
✅ Passed checks (13 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed All affected Ginkgo titles are static string literals; added titles contain no generated names, timestamps, UUIDs, nodes, namespaces, IPs, or other run-dependent values.
Microshift Test Compatibility ✅ Passed No e2e tests were added; all five changed Ginkgo files are pkg controller envtest suites, and the diff has zero paths under e2e/.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No e2e paths changed. Added Ginkgo tests use envtest or fake clients for controller conditions and contain no node, topology, scheduling, or HA assumptions.
Topology-Aware Scheduling Compatibility ✅ Passed The diff changes controller status handling and manager wiring only. It adds no workload manifests, replicas, affinity, topology spread, node selectors, tolerations, or PDB scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The PR changes no OTE entry-point code or process-level stdout writes; OTE setup uses GinkgoLogr/buffers, and main's error panic is not stdout.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No e2e files were added or modified; the new Ginkgo tests are package unit tests under pkg/controllers, so this check is not applicable.
No-Weak-Crypto ✅ Passed The pull request adds no MD5, SHA-1, DES, RC4, Blowfish, or ECB usage, custom crypto, or secret/token comparison; existing SecretSync DeepEqual code is unchanged.
Container-Privileges ✅ Passed The PR changes only Go and test files. First-party workload manifests contain no privileged:true, host namespaces, SYS_ADMIN, or allowPrivilegeEscalation settings; deployments require restricted SCCs.
No-Sensitive-Data-In-Logs ✅ Passed The PR adds only static reconciliation logging; reviewed log calls do not emit Secret.Data, tokens, kubeconfig bytes, user data, credentials, or API keys.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the migration of four controllers to per-controller condition reporting.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci
openshift-ci Bot requested review from mdbooth and racheljpg June 4, 2026 11:59

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/controllers/kubeconfig/kubeconfig_test.go`:
- Around line 159-160: The test mutates the server-managed field by calling
tokenSecret.SetCreationTimestamp(...) and then cl.Update(ctx, tokenSecret);
remove the SetCreationTimestamp call and only modify fields that are
client-editable (e.g., annotations) so the test updates tokenSecret via
cl.Update(...) without touching metadata.creationTimestamp; locate the
tokenSecret variable and the SetCreationTimestamp invocation in
kubeconfig_test.go and delete that mutation, ensuring subsequent cl.Update(ctx,
tokenSecret) only changes annotations or other writable fields.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: c0c49503-59cf-4e6c-b87f-ccc4dd58187f

📥 Commits

Reviewing files that changed from the base of the PR and between 3f1aa11 and eae2e85.

⛔ Files ignored due to path filters (2)
  • vendor/golang.org/x/tools/cmd/stringer/stringer.go is excluded by !**/vendor/**, !vendor/**
  • vendor/modules.txt is excluded by !**/vendor/**, !vendor/**
📒 Files selected for processing (26)
  • Makefile
  • cmd/capi-controllers/main.go
  • cmd/capi-operator/main.go
  • go.mod
  • pkg/commoncmdoptions/commonoptions.go
  • pkg/controllers/clusteroperator/clusteroperator_controller.go
  • pkg/controllers/clusteroperator/clusteroperator_controller_test.go
  • pkg/controllers/clusteroperator/suite_test.go
  • pkg/controllers/common_consts.go
  • pkg/controllers/corecluster/corecluster_controller.go
  • pkg/controllers/corecluster/corecluster_controller_test.go
  • pkg/controllers/infracluster/infracluster_controller.go
  • pkg/controllers/infracluster/infracluster_controller_test.go
  • pkg/controllers/installer/installer_controller.go
  • pkg/controllers/kubeconfig/kubeconfig.go
  • pkg/controllers/kubeconfig/kubeconfig_test.go
  • pkg/controllers/revision/revision_controller.go
  • pkg/controllers/revision/revision_controller_test.go
  • pkg/controllers/secretsync/secret_sync_controller.go
  • pkg/controllers/secretsync/secret_sync_controller_test.go
  • pkg/operatorstatus/controller_status.go
  • pkg/operatorstatus/controller_status_test.go
  • pkg/operatorstatus/operator_status.go
  • pkg/operatorstatus/reason_string.go
  • pkg/operatorstatus/watch_predicates.go
  • pkg/test/conditions.go
💤 Files with no reviewable changes (3)
  • pkg/controllers/common_consts.go
  • pkg/operatorstatus/operator_status.go
  • pkg/commoncmdoptions/commonoptions.go

Comment thread pkg/controllers/kubeconfig/kubeconfig_test.go Outdated
@stefanonardo

Copy link
Copy Markdown
Contributor Author

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 4, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
pkg/controllers/clusteroperator/clusteroperator_controller_test.go (1)

94-343: ⚡ Quick win

Use should ... phrasing for table entry names.

Most updated Entry(...) descriptions are "when ..."; switch them to "should ... when ..." to match the test naming convention used in this repo.

As per coding guidelines: Use descriptive test names in 'should...' format in Ginkgo tests (e.g., 'should do nothing').

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/controllers/clusteroperator/clusteroperator_controller_test.go` around
lines 94 - 343, The table-driven test Entries in
clusteroperator_controller_test.go use "when ..." phrasing; update each
Entry(...) description to the repository's "should ... when ..." convention
(e.g., change "when all sub-controllers report success" to "should report
success when all sub-controllers report success") so all Entry(...) strings in
the DescribeTable/Entry block (look for the long DescribeTable block containing
Entry("when all sub-controllers report success", ..., defaultNodeTimeout) and
subsequent Entry calls) follow the "should ..." naming pattern while keeping the
rest of each Entry invocation unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/controllers/clusteroperator/clusteroperator_controller_test.go`:
- Around line 184-187: The test claims to exercise the "missing sub-conditions"
path but instead sets InstallerControllerAvailable/Progressing to Unknown;
replace the explicit subCondition entries with a helper that removes those types
so the conditions are actually absent. Add the helper function
withoutConditionTypes(base
[]*configv1apply.ClusterOperatorStatusConditionApplyConfiguration, types
...string) []*configv1apply.ClusterOperatorStatusConditionApplyConfiguration (as
shown in the comment) and change the test invocation from
withOverrides(allSubControllersSuccessful(), subCondition(...),
subCondition(...)) to
withOverrides(withoutConditionTypes(allSubControllersSuccessful(),
"InstallerControllerAvailable", "InstallerControllerProgressing")) so
getSubcontrollerCondition is exercised for absent conditions.

---

Nitpick comments:
In `@pkg/controllers/clusteroperator/clusteroperator_controller_test.go`:
- Around line 94-343: The table-driven test Entries in
clusteroperator_controller_test.go use "when ..." phrasing; update each
Entry(...) description to the repository's "should ... when ..." convention
(e.g., change "when all sub-controllers report success" to "should report
success when all sub-controllers report success") so all Entry(...) strings in
the DescribeTable/Entry block (look for the long DescribeTable block containing
Entry("when all sub-controllers report success", ..., defaultNodeTimeout) and
subsequent Entry calls) follow the "should ..." naming pattern while keeping the
rest of each Entry invocation unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: a7aeda83-7ff2-4d11-acaa-2f829b7ae886

📥 Commits

Reviewing files that changed from the base of the PR and between eae2e85 and 583d1d8.

📒 Files selected for processing (13)
  • cmd/capi-controllers/main.go
  • pkg/commoncmdoptions/commonoptions.go
  • pkg/controllers/clusteroperator/clusteroperator_controller.go
  • pkg/controllers/clusteroperator/clusteroperator_controller_test.go
  • pkg/controllers/corecluster/corecluster_controller.go
  • pkg/controllers/corecluster/corecluster_controller_test.go
  • pkg/controllers/infracluster/infracluster_controller.go
  • pkg/controllers/infracluster/infracluster_controller_test.go
  • pkg/controllers/kubeconfig/kubeconfig.go
  • pkg/controllers/kubeconfig/kubeconfig_test.go
  • pkg/controllers/secretsync/secret_sync_controller.go
  • pkg/controllers/secretsync/secret_sync_controller_test.go
  • pkg/operatorstatus/operator_status.go
💤 Files with no reviewable changes (2)
  • pkg/commoncmdoptions/commonoptions.go
  • pkg/operatorstatus/operator_status.go
🚧 Files skipped from review as they are similar to previous changes (8)
  • cmd/capi-controllers/main.go
  • pkg/controllers/infracluster/infracluster_controller_test.go
  • pkg/controllers/kubeconfig/kubeconfig_test.go
  • pkg/controllers/secretsync/secret_sync_controller_test.go
  • pkg/controllers/clusteroperator/clusteroperator_controller.go
  • pkg/controllers/infracluster/infracluster_controller.go
  • pkg/controllers/corecluster/corecluster_controller_test.go
  • pkg/controllers/secretsync/secret_sync_controller.go

Comment thread pkg/controllers/clusteroperator/clusteroperator_controller_test.go Outdated
}

return ctrl.Result{}, nil
return ResultGenerator.Success()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be WaitingOnExternal.

You should also check if this controller watches the Infrastructure object (check in SetupWithManager). If it doesn't we'll either need to watch it or also add a RequeueAfter here. Polling should be fine in this case if we don't already have a watch: we don't really expect this to happen.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don' watch it, I'll requeue it after 1 minute

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
pkg/controllers/kubeconfig/kubeconfig.go (1)

147-162: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Return a waiting result after clearing the token secret.

This branch deliberately empties the token data so another controller can repopulate it. Returning Success() here briefly reports Available=True/Progressing=False before the next reconcile flips back to WaitingOnExternal, which makes the ClusterOperator condition false-green during refresh.

Suggested fix
 		if err := r.Update(ctx, tokenSecret); err != nil {
 			return ResultGenerator.Error(fmt.Errorf("unable to clear token secret data: %w", err))
 		}
 
-		return ResultGenerator.Success()
+		return ResultGenerator.WaitingOnExternal("token secret population").WithRequeueAfter(1 * time.Minute)
 	}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/controllers/kubeconfig/kubeconfig.go` around lines 147 - 162, The code
clears tokenSecret.Data and sets tokenRefreshAnnotationKey then returns
ResultGenerator.Success(), which briefly marks the operator Available=true;
instead return a waiting result so the operator reflects that it is waiting for
the external token controller to repopulate the secret: after calling
r.Update(ctx, tokenSecret) replace the Success() return with
ResultGenerator.WaitingOnExternal() (or the appropriate Waiting result used
elsewhere) so reconcile reports a waiting state until the token is restored;
update references around tokenSecret, tokenRefreshAnnotationKey, r.Update, and
ResultGenerator accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@pkg/controllers/kubeconfig/kubeconfig.go`:
- Around line 147-162: The code clears tokenSecret.Data and sets
tokenRefreshAnnotationKey then returns ResultGenerator.Success(), which briefly
marks the operator Available=true; instead return a waiting result so the
operator reflects that it is waiting for the external token controller to
repopulate the secret: after calling r.Update(ctx, tokenSecret) replace the
Success() return with ResultGenerator.WaitingOnExternal() (or the appropriate
Waiting result used elsewhere) so reconcile reports a waiting state until the
token is restored; update references around tokenSecret,
tokenRefreshAnnotationKey, r.Update, and ResultGenerator accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 265a4a4f-618d-4950-b037-566ee03e1f5b

📥 Commits

Reviewing files that changed from the base of the PR and between cbd5749 and 181c66b.

📒 Files selected for processing (13)
  • cmd/capi-controllers/main.go
  • pkg/commoncmdoptions/commonoptions.go
  • pkg/controllers/clusteroperator/clusteroperator_controller.go
  • pkg/controllers/clusteroperator/clusteroperator_controller_test.go
  • pkg/controllers/corecluster/corecluster_controller.go
  • pkg/controllers/corecluster/corecluster_controller_test.go
  • pkg/controllers/infracluster/infracluster_controller.go
  • pkg/controllers/infracluster/infracluster_controller_test.go
  • pkg/controllers/kubeconfig/kubeconfig.go
  • pkg/controllers/kubeconfig/kubeconfig_test.go
  • pkg/controllers/secretsync/secret_sync_controller.go
  • pkg/controllers/secretsync/secret_sync_controller_test.go
  • pkg/operatorstatus/operator_status.go
💤 Files with no reviewable changes (2)
  • pkg/operatorstatus/operator_status.go
  • pkg/commoncmdoptions/commonoptions.go
🚧 Files skipped from review as they are similar to previous changes (10)
  • pkg/controllers/secretsync/secret_sync_controller_test.go
  • cmd/capi-controllers/main.go
  • pkg/controllers/kubeconfig/kubeconfig_test.go
  • pkg/controllers/corecluster/corecluster_controller_test.go
  • pkg/controllers/infracluster/infracluster_controller.go
  • pkg/controllers/infracluster/infracluster_controller_test.go
  • pkg/controllers/clusteroperator/clusteroperator_controller_test.go
  • pkg/controllers/secretsync/secret_sync_controller.go
  • pkg/controllers/clusteroperator/clusteroperator_controller.go
  • pkg/controllers/corecluster/corecluster_controller.go

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/test unit

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/unhold

@openshift-ci openshift-ci Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 11, 2026
@stefanonardo

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/test unit

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@stefanonardo

Copy link
Copy Markdown
Contributor Author

/retest

@mdbooth mdbooth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@mdbooth

mdbooth commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

/verified by CI

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Aug 11, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@mdbooth: This PR has been marked as verified by CI.

Details

In response to this:

/verified by CI

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.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2026
@openshift-ci

openshift-ci Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

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 Aug 11, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-aws-capi-disconnected-techpreview
/test e2e-aws-capi-techpreview
/test e2e-aws-capi-techpreview-post-install
/test e2e-aws-ovn-techpreview
/test e2e-aws-ovn-techpreview-upgrade
/test e2e-azure-capi-techpreview
/test e2e-azure-ovn-techpreview
/test e2e-azure-ovn-techpreview-upgrade
/test e2e-gcp-capi-techpreview
/test e2e-gcp-ovn-techpreview
/test e2e-metal3-capi-techpreview
/test e2e-openstack-capi-techpreview
/test e2e-vsphere-capi-techpreview
/test regression-clusterinfra-aws-ipi-techpreview-capi

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 311aae0 and 2 for PR HEAD c21f4b8 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD a8ffc67 and 1 for PR HEAD c21f4b8 in total

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/retest

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD e6b88f4 and 0 for PR HEAD c21f4b8 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/hold

Revision c21f4b8 was retested 3 times: holding

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 12, 2026
@stefanonardo

Copy link
Copy Markdown
Contributor Author

/retest

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/retest

Migrate CoreCluster, InfraCluster, Kubeconfig, and SecretSync controllers
from ClusterOperatorStatusClient (merge-patch, shared top-level conditions)
to ControllerResultGenerator (server-side apply, per-controller prefixed
conditions).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Aug 13, 2026
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2026
@openshift-ci

openshift-ci Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

@openshift-ci-robot

openshift-ci-robot commented Aug 13, 2026

Copy link
Copy Markdown

@stefanonardo: This pull request references OCPCLOUD-3442 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 "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Migrate CoreCluster, InfraCluster, Kubeconfig, and SecretSync controllers from ClusterOperatorStatusClient (merge-patch, shared top-level conditions) to ControllerResultGenerator (server-side apply, per-controller prefixed conditions)
  • Each controller now reports its own Available and Progressing conditions on the ClusterOperator object, which are aggregated into top-level conditions by the ClusterOperator controller
  • Delete ClusterOperatorStatusClient and GetClusterOperatorStatusClient — no remaining consumers
  • Add ClusterOperator watch to SecretSync for initial reconciliation at startup — on platforms where the source secret does not exist (e.g. metal3, where CAPM3 reads user data directly via a namespace-qualified SecretReference), report success instead of blocking the install

🤖 Generated with Claude Code

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.

@openshift-ci

openshift-ci Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

@stefanonardo: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal3-capi-techpreview c21f4b8 link false /test e2e-metal3-capi-techpreview

Full PR test history. Your PR dashboard.

Details

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/test e2e-metal3-capi-techpreview

@stefanonardo

Copy link
Copy Markdown
Contributor Author

/retest

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants