-
Notifications
You must be signed in to change notification settings - Fork 382
Fixing error when plan is updated and mutateOnUpdate deletes ClusterServicePlanRef value #2754
Fixing error when plan is updated and mutateOnUpdate deletes ClusterServicePlanRef value #2754
Conversation
…ervicePlanRef value
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
Welcome @adcarabajal! |
Hi @adcarabajal. 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. |
/assign @piotrmiskiewicz |
/check-cla |
/ok-to-test |
/retest |
/lgtm |
Hi, @piotrmiskiewicz @mszostok @jberkhahn , Is it ready to merge? could you please take a look? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adcarabajal, jberkhahn 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:
When plan is updated for a service instance, there is a clean up of ClusterServicePlanRef for the new serviceInstance object at function mutateOnUpdate:
https://github.com/kubernetes-sigs/service-catalog/blob/b5a5c4bdb6f4bcf13171476113467feb274de1f7/pkg/webhook/servicecatalog/serviceinstance/mutation/handler.go#L137
Having this ClusterServicePlanRef nil, will make syncLabels function fail.
Which issue(s) this PR fixes
Fixes #
Merge Checklist:
breaking the chart release and existing clients who provide a
flag that will get an error when they try to update