-
Notifications
You must be signed in to change notification settings - Fork 562
[release-4.4] Bug 1870784: Retry conflicting catalog source pod update after fetching latest pod spec #1782
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
[release-4.4] Bug 1870784: Retry conflicting catalog source pod update after fetching latest pod spec #1782
Conversation
@ankitathomas: This pull request references Bugzilla bug 1870784, 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. |
/bugzilla refresh |
@ankitathomas: This pull request references Bugzilla bug 1870784, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 6 validation(s) were run on this bug
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. |
/test e2e-upgrade |
/approve |
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
@@ -47,6 +49,7 @@ import ( | |||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/grpc" | |||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/reconciler" | |||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/resolver" | |||
controllerclient "github.com/operator-framework/operator-lifecycle-manager/pkg/lib/controller-runtime/client" |
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.
nit: import order
@@ -49,6 +49,7 @@ import ( | |||
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry/resolver" | |||
"github.com/operator-framework/operator-lifecycle-manager/pkg/fakes" | |||
"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/clientfake" | |||
controllerclient "github.com/operator-framework/operator-lifecycle-manager/pkg/lib/controller-runtime/client" |
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.
nit: import order
"context" | ||
"fmt" | ||
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" | ||
"k8s.io/apimachinery/pkg/runtime" | ||
kscheme "k8s.io/client-go/kubernetes/scheme" | ||
"k8s.io/client-go/rest" | ||
apiregistrationv1 "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1" | ||
"reflect" | ||
k8scontrollerclient "sigs.k8s.io/controller-runtime/pkg/client" |
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.
nit: import order/spacing
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankitathomas, kevinrizza, njhale 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
@ankitathomas: All pull requests linked via external trackers have merged: Bugzilla bug 1870784 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. |
Description of the change:
Updating the catalog source pod was intermittently failing due to resource version conflicts. This change switches to using Server side apply to do perform the catalog source pod update.
cherry-pick of #1734