Skip to content
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

odo remove binding #5787

Merged

Conversation

valaparthvi
Copy link
Contributor

Signed-off-by: Parthvi Vala [email protected]

What type of PR is this:
/kind feature

What does this PR do / why we need it:
This PR adds support for removing binding from the devfile
Which issue(s) this PR fixes:

Fixes #5693

PR acceptance criteria:

  • Unit test

  • Integration test

  • Documentation

How to test changes / Special notes to the reviewer:

  1. mkdir /tmp/105; cd /tmp/105
  2. wget https://gist.githubusercontent.com/valaparthvi/dc79e1b3854fff8b55b80b96db9e58c8/raw/4b5d8eb7532f88b18e1ab63fe13c9d3f67a678e3/devfile.yaml

3.1 odo remove binding --name cluster-sample-my-node-app
3.2 odo remove binding --name cluster-sample-my-node-app-1

@netlify
Copy link

netlify bot commented Jun 2, 2022

Deploy Preview for odo-docusaurus-preview ready!

Name Link
🔨 Latest commit 242272f
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/62a063fe4603340008760ae7
😎 Deploy Preview https://deploy-preview-5787--odo-docusaurus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation label Jun 2, 2022
@openshift-ci openshift-ci bot requested review from rm3l and rnapoles-rh June 2, 2022 15:58
@odo-robot
Copy link

odo-robot bot commented Jun 2, 2022

Unit Tests on commit bcb426e finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 2, 2022

Windows Tests (OCP) on commit bcb426e finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 2, 2022

Kubernetes Tests on commit bcb426e finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 2, 2022

OpenShift Tests on commit bcb426e finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Jun 2, 2022

Validate Tests on commit bcb426e finished successfully.
View logs: TXT HTML

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 3, 2022
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 6, 2022
@valaparthvi
Copy link
Contributor Author

/retest-required
IBM tests pass.

title: odo remove binding
---

The `odo remove binding` command removes the link created between the component and a service via Service Binding.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please follow the format of this page, with "Description" and "Running the command" section?

https://odo.dev/docs/3.0.0/command-reference/dev

@@ -0,0 +1,83 @@
package binding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could name the files add.go and remove.go

@valaparthvi valaparthvi requested a review from feloy June 8, 2022 05:51
@feloy
Copy link
Contributor

feloy commented Jun 8, 2022

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 8, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jun 8, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feloy

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. label Jun 8, 2022
@valaparthvi
Copy link
Contributor Author

/retest-required

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Jun 8, 2022
@openshift-ci openshift-ci bot removed lgtm Indicates that a PR is ready to be merged. Required by Prow. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. labels Jun 8, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.5% 0.5% Duplication

@feloy
Copy link
Contributor

feloy commented Jun 8, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Jun 8, 2022
@valaparthvi
Copy link
Contributor Author

/retest-required

@openshift-merge-robot openshift-merge-robot merged commit 5a506ee into redhat-developer:main Jun 8, 2022
cdrage pushed a commit to cdrage/odo that referenced this pull request Aug 31, 2022
* odo remove binding

Signed-off-by: Parthvi Vala <[email protected]>

* Documentation

Signed-off-by: Parthvi Vala <[email protected]>

* Refactor pkg/binding and separate add and remove code

* Add unit test

* Rebase alterations

* Refactor

* Philippe's review

Signed-off-by: Parthvi Vala <[email protected]>

* Rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Required by Prow. kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

user should be able to unbind (odo remove binding)
3 participants