-
Notifications
You must be signed in to change notification settings - Fork 254
Copy ClusterVersion.Status into ClusterDeployment #2206
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
Copy ClusterVersion.Status into ClusterDeployment #2206
Conversation
|
/hold
/cc @vkareh @cblecker @jewzaam @LalatenduMohanty @gvanderpotte @wanghaoran1988 @wking |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2206 +/- ##
==========================================
+ Coverage 50.31% 51.69% +1.38%
==========================================
Files 288 288
Lines 34087 36358 +2271
==========================================
+ Hits 17151 18797 +1646
- Misses 15594 16169 +575
- Partials 1342 1392 +50
🚀 New features to boost your workflow:
|
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
|
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
|
@openshift-bot: Closed this PR. DetailsIn 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. |
|
/reopen |
|
@2uasimojo: Reopened this PR. DetailsIn 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. |
46ebaf7 to
5af6c5f
Compare
0c829ca to
fc15313
Compare
fc15313 to
a8c3d1c
Compare
|
/assign @jstuever /hold cancel /cc @wking @lucasponce |
Add a new field, ClusterDeployment.Status.ClusterVersionStatus. At the behest of an (undocumented, unsupported) annotation, `hive.openshift.io/sync-clusterversion-status: "true"` (note: string `"true"` since it's an annotation) our clusterversion controller (the same one that updates the `hive.openshift.io/version*` labels) will populate it with a wholesale copy of the spoke's ClusterVersion.Status field. NOTE: This requires that our vendor of openshift/api be kept up to date, as e.g. new enum values for `capabilities` will break us. HIVE-2366
a8c3d1c to
ffd8a17
Compare
|
/hold for more reviews |
wking
left a comment
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
|
/retest hive-mce-29-on-pull-request |
|
@2uasimojo: The Use DetailsIn 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. |
| // `clusterversion version` object. This is not officially supported, and is only populated | ||
| // on request. | ||
| // +optional | ||
| ClusterVersionStatus *configv1.ClusterVersionStatus `json:"clusterVersionStatus,omitempty"` |
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.
In case it's relevant to compare with Hypershift API
I'm not familiar with the motivation to create a struct rather than fetching the whole object.
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.
Yup, we definitely considered doing it that way. Ultimately we landed on this approach mainly because it makes it so much easier to carry changes forward: we just have to revendor o/api. That's especially easy for hive as we don't operate under the same long release cadence as OCP itself. The only serious concern was CR space, but we convinced ourselves with live data that we're nowhere near the danger zone in that regard.
|
/lgtm Minor comment about the decision that took Hypershift to copy the struct instead to reuse the type from openshift api. But PR looks good, thanks Eric. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 2uasimojo, jstuever, lucasponce, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
|
@2uasimojo: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Add a new field, ClusterDeployment.Status.ClusterVersionStatus.
At the behest of an (undocumented, unsupported) annotation,
hive.openshift.io/sync-clusterversion-status: "true"(note: string"true"since it's an annotation) our clusterversion controller (the same one that updates thehive.openshift.io/version*labels) will populate it with a wholesale copy of the spoke's ClusterVersion.Status field.NOTE: This requires that our vendor of openshift/api be kept up to date, as e.g. new enum values for
capabilitieswill break us.HIVE-2366