STOR-1334: update storage operator to read featuregates from API#376
Conversation
FeatureGates on HyperShift have the right status already.
|
@jsafrane: This pull request references STOR-1334 which is a valid jira issue. 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/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsafrane 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 |
|
/retest |
|
/test hypershift-aws-e2e-external |
|
@jsafrane: The following test failed, say
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/test-infra repository. I understand the commands that are listed here. |
| klog.Errorf("timed out waiting for FeatureGate detection") | ||
| return fmt.Errorf("timed out waiting for FeatureGate detection") | ||
| } | ||
| featureGates, err := featureGateAccessor.CurrentFeatureGates() |
There was a problem hiding this comment.
I feel like CurrentFeatureGates should block until it has done syncing the loop. Is 1 minute reasonable time btw?
There was a problem hiding this comment.
The select above is the blocking sync to get feature gates.
With exit() after 1 minute, kubelet will start exp. backoff restarting the Pod, so I think it's good enough. A cluster without FeatureGate is not a very healthy one.
There was a problem hiding this comment.
@deads2k what do you think about call to CurrentFeatures blocking . I think that this code leaks internal details of featuregateAccess object. We can clean this up in a follow up, if we all agree to it.
|
/lgtm |
|
/label px-approved |
|
I built standalone and hypershift hosted cluster to verify: Looks like not storage issue, will take further check on this. |
|
My bad, the featuregate need to be set in management cluster |
|
/label qe-approved |
|
/label jira/valid-bug |
A second attempt after #368. Now read the feature gates from API both in standalone cluster and in hypershift - it has correct
featuregate.status.@openshift/storage