Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Fix RemoveFinalizer methods in svcat cli #2823

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

mszostok
Copy link
Contributor

Description

Fix method for removing the service-catalog finalizer from the ServiceInstance and ServiceBinding.

Context:
In the previous approach (Aggregate API server) the UpdateStatus func allowed to update fields under metadata entry. When we switch to the native webhook concept, this hacky implementation was removed and now we should use the Update function as the UpdateStatus modifies only Status entry.

/kind bug

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 18, 2020
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 18, 2020
@mszostok
Copy link
Contributor Author

/retest

@MHBauer
Copy link
Contributor

MHBauer commented Jun 25, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2020
@jberkhahn
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jberkhahn, mszostok

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jberkhahn
Copy link
Contributor

/retest

1 similar comment
@jberkhahn
Copy link
Contributor

/retest

@fabstu
Copy link

fabstu commented Jul 3, 2020

Hello @mszostok, I hit the same issue here. I only saw this PR after I created a patch of my own, but with tests added already. :)

If UpdateStatus is called then the actions' SubResource is "status". The following expression checks for that. Just add it at the end of the Finalizer tests RemoveFinalizerForBinding and RemoveFinalizerForInstance:

    Expect(actions[1].(testing.UpdateActionImpl).GetSubresource()).To(Equal(""))

@mszostok
Copy link
Contributor Author

mszostok commented Jul 6, 2020

/retest

@mszostok
Copy link
Contributor Author

mszostok commented Jul 9, 2020

/test pull-build-all-images-for-amd64

@mszostok
Copy link
Contributor Author

mszostok commented Jul 9, 2020

/test pull-build-all-images-for-ppc64le

@k8s-ci-robot k8s-ci-robot merged commit 18c0d73 into kubernetes-retired:master Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants