Skip to content

Conversation

@carbonin
Copy link
Member

giladravid16 and others added 7 commits January 15, 2026 13:59
Adds the restore status annotation to ICI CRs and also waits for the
status to be added to resources that are created by a restore operation.

Because the spec and status need to be set by two different API calls to
the API server the controller needs to know when to wait for the status
to be set before initializing the conditions.

Initializing the conditions in a restore scenario can lead to a conflict
where the restore fails and the old status doesn't get set.

https://issues.redhat.com/browse/MGMT-22276
Previously if/when IBIO was upgraded to include changes to add backup
labels the labels would not be added for resources referenced by already
installed clusters. To allow for this, the controller now needs to get
the ClusterDeployment earlier (to find the referenced resources). To
allow the conditions to still be set as before in cases where the
ClusterDeployment is missing or the reference is not set, Reconcile
specifically does not return when ClusterDeployment can't be found in this
new, earlier, getCD call error case.

This also handles labeling created resources immediately by adding the
backup label to them when they are created in the credentials package.
@coderabbitai
Copy link

coderabbitai bot commented Jan 15, 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.

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


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

@carbonin carbonin requested review from eliorerz and gamli75 January 15, 2026 19:06
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2026
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 15, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 15, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin, gamli75

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
Copy link

openshift-ci bot commented Jan 15, 2026

@carbonin: all tests passed!

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.

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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants