[release-4.10] Bug 2080609: Fix GRPC CheckRegistryServer function (#2756)#296
Conversation
|
@openshift-cherrypick-robot: Bugzilla bug 2074612 has been cloned as Bugzilla bug 2080609. Retitling PR to link against new bug. 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. |
|
@openshift-cherrypick-robot: This pull request references Bugzilla bug 2080609, which is invalid:
Comment 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. |
| serviceAccountName := source.ServiceAccount().GetName() | ||
| serviceAccount, err := c.Lister.CoreV1().ServiceAccountLister().ServiceAccounts(source.GetNamespace()).Get(serviceAccountName) | ||
| if err != nil { | ||
| logrus.WithField("service", serviceAccount).Debug("couldn't find service in cache") |
There was a problem hiding this comment.
| logrus.WithField("service", serviceAccount).Debug("couldn't find service in cache") | |
| logrus.WithField("serviceAccount", serviceAccount).Debug("couldn't find serviceAccount in cache") |
There was a problem hiding this comment.
Yep - made this same comment in the wrong PR. Should we just manually create a 4.10 PR so we can add that second commit?
Problem: The CheckRegistryServer function used by grpc catalogSources does not confirm that the serviceAccount associated with the catalogSource exists. Solution: Update the GRPC CheckRegistryServer function to check if the serviceAccount exists. Signed-off-by: Alexander Greene <greene.al1991@gmail.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: 7e8e9f77d08d1bf451ce61b7bb2610473e793ded
5eb6c57 to
ae83d92
Compare
|
Going to manually create a backport so this fix is included. |
|
@awgreene: 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/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: openshift-cherrypick-robot The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@openshift-cherrypick-robot: 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/test-infra repository. I understand the commands that are listed here. |
|
Created #298 for the 4.10 backport. |
This is an automated cherry-pick of #294
/assign awgreene