-
Notifications
You must be signed in to change notification settings - Fork 321
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
OCPBUGS-44910: openstack: don't reconcile image registry config during bootstrap #5178
Conversation
@EmilienM: This pull request references Jira Issue OCPBUGS-44910, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (rlobillo@redhat.com), skipping review request. The bug has been updated to refer to the pull request using the external bug tracker. 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. |
/test e2e-openstack-csi-cinder |
/test e2e-aws |
4916158
to
36978f2
Compare
/test e2e-openstack-csi-cinder |
36978f2
to
6a70de8
Compare
✅ Deploy Preview for hypershift-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/test e2e-openstack-csi-cinder |
/cherry-pick release-4.18 |
@EmilienM: once the present PR merges, I will cherry-pick it on top of 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 kubernetes-sigs/prow repository. |
/test okd-scos-e2e-aws-ovn |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, EmilienM 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
control-plane-operator/hostedclusterconfigoperator/controllers/resources/resources.go
Outdated
Show resolved
Hide resolved
…g bootstrap For platforms where cluster-image-registry-operator (CIRO) needs a PVC to be created, bootstrap needs to happen in CIRO before the registry config is created. For now, this is the case for the OpenStack platform. If the object exist, we reconcile the registry config for other other fields as it should be fine since the PVC would exist at this point. This patch will maintain a list of platforms that require a PVC for CIRO (OpenStack only for now), check whether an image registry config already exist and if it does, skip reconcile to let CIRO bootstrap doing it and creating the needed PVC for CIRO.
6a70de8
to
1341901
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not clear on the relationship between CIRO and hypershift. If we need in all case for CIRO to write its config once, why don't we make it a needed condition in hypershift (for all platforms)? Why do we need to maintain a list of platforms that might use a PV as the storage for the image registry?
Creating configs before an operator starts seems to be a common design pattern in Hypershift. I'm not sure we want to change that for all the platforms even if it might work for CIRO in this particular case. |
/test e2e-aws |
As Emilien mentioned, the reason is to limit the scope of this change to OpenStack. We may eventually want to do it for other platforms as well. But since that does have a broader impact, we want to be more intentional about it and maybe not just do it for CIRO but for other operators as well. |
/hold cancel |
/test e2e-aws |
1 similar comment
/test e2e-aws |
1 similar comment
/test e2e-aks |
2 similar comments
/retest-required |
/hold cancel |
/test e2e-aws |
@EmilienM: The following test failed, say
Full PR test history. Your PR dashboard. 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. |
/test e2e-aws |
8326d86
into
openshift:main
@EmilienM: Jira Issue OCPBUGS-44910: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-44910 has been moved to the MODIFIED state. 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. |
@EmilienM: new pull request created: #5198 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 kubernetes-sigs/prow repository. |
[ART PR BUILD NOTIFIER] Distgit: hypershift |
What this PR does / why we need it:
For platforms where cluster-image-registry-operator (CIRO) needs a PVC to be created, bootstrap needs to happen
in CIRO before the registry config is created. For now, this is the case for the OpenStack platform.
If the object exist, we reconcile the registry config for other other fields as it should be fine since the PVC would
exist at this point.
This patch will maintain a list of platforms that require a PVC for CIRO
(OpenStack only for now), check whether an image registry config already
exist and if it does, skip reconcile to let CIRO bootstrap doing it and
creating the needed PVC for CIRO.