-
Notifications
You must be signed in to change notification settings - Fork 382
Fix ServicePlan resync #2797
Fix ServicePlan resync #2797
Conversation
Hi @polskikiel. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
/ok-to-test |
/kind bug |
@@ -62,7 +62,7 @@ func (c *controller) reconcileServicePlanKey(key string) error { | |||
return err | |||
} | |||
pcb := pretty.NewContextBuilder(pretty.ServicePlan, namespace, name, "") | |||
plan, err := c.servicePlanLister.ServicePlans(namespace).Get(key) | |||
plan, err := c.servicePlanLister.ServicePlans(namespace).Get(name) |
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.
can we cover that with some unit-test to do not have any regression in the future? 🙂
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.
Sure, I managed to test that logic. I created a ticket for other controllers that don't have this kind of test coverage: #2799.
/lgtm |
@@ -18,6 +18,7 @@ package controller | |||
|
|||
import ( | |||
"errors" | |||
"k8s.io/client-go/tools/cache" |
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: it will be good to have imports sorted
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.
imports fixed
/test pull-service-catalog-test-integration |
/test pull-build-all-images-for-arm64 |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mszostok, polskikiel 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 |
This PR is a
What this PR does / why we need it:
This PR fixes a situation when some ServicePlan was marked as
removedFromBrokerCatalog
and it wasn't removed on ServicePlan reconcile. The removing logic was blocked due to a bug, which I'm trying to address in this PR.Please leave this checklist in the PR comment so that maintainers can ensure a good PR.
Merge Checklist:
breaking the chart release and existing clients who provide a
flag that will get an error when they try to update