-
Notifications
You must be signed in to change notification settings - Fork 46
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-8271: external template and route Informer #100
OCPBUGS-8271: external template and route Informer #100
Conversation
Hi @lance5890. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Anyone who has any ideas? I have modify the cluster-policy-controller code and rebuild the image, and stop the cvo,and change the release image, it does work |
I am missing context here (even after looking into the issue). What's not working? |
so we should change the GenericInternalResourceInformerFunc to GenericResourceInformerFunc, just like the build.openshift.io and other openshift api resources |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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 kubernetes/test-infra repository. |
/jira refresh |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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/test-infra repository. |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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/test-infra repository. |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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/test-infra repository. |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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/test-infra repository. |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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/test-infra repository. |
/ok-to-test |
/retest-required |
@lance5890: This pull request references Jira Issue OCPBUGS-7917, which is invalid:
Comment 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/test-infra repository. |
@lance5890: This pull request references Jira Issue OCPBUGS-8271, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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 kubernetes/test-infra repository. |
This looks like a reasonable fix without the knowledge why the internal version was used in the first place. Nevertheless, the fix needs at least a unit test to validate it. A test invoking NewControllerContext as the top level entry with a complete list of all resources that are watched. Checking the code this might be challenging. @lance5890 thanks for the effort. I will need to check the code more to properly review your changes. |
@ingvagabund thanks for your review, that does make sense !
|
@lance5890 are you planning to follow up in this issue? |
yeah, could u review my PR |
I mean taking care of the test that Jan mentioned before. The PR looks fine with the same reservations as Jan pointed out |
i'd like to complete this issue, would u help me to finish this together? |
The code has been sitting here for a long time. For that it is not easily seen impact of renaming GenericInternalResourceInformerFunc -> GenericResourceInformerFunc. Also, CPC code could use some maintenance phase where we improve the test coverage. |
vs.
The notable difference:
|
Comparing https://github.com/openshift/client-go/blob/master/quota/informers/externalversions/generic.go and https://github.com/openshift/client-go/blob/master/image/informers/externalversions/generic.go and other files on common both |
openshift/origin@2778fab might help to deduce which condition was needed to GenericInternalResourceInformerFunc -> GenericResourceInformerFunc. |
Checking openshift/origin@555f87c#diff-9a553c47b0996d1d4fb15a1ea194e97c15abbe737b9fda6f05eee890ae7a4045L154 it seems |
@lance5890 the internal version was used long time ago before there were versioned clientset. Can you also remove definition of |
ok I will get a closer look at this, and repaire what u said |
Signed-off-by: lan.tian <lance5890@163.com>
7ab4c79
to
5f55651
Compare
@lance5890: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: atiratree, ingvagabund, lance5890 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 |
@lance5890: Jira Issue OCPBUGS-8271: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-8271 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 kubernetes/test-infra repository. |
could we cherry-pick this to 4.12? |
+1, I think it makes to backport this |
@atiratree: new pull request created: #112 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/test-infra repository. |
external template and route Informer, I think this is caused by commit ccd7b3e and some other similar commit
log and analysis show in this issue:
# issue 99 cluster-policy-controller log err