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

Remove specifying a component when deleting #3998

Closed
wants to merge 1 commit into from

Conversation

cdrage
Copy link
Member

@cdrage cdrage commented Sep 21, 2020

What type of PR is this?

Uncomment only one /kind line, and delete the rest.
For example, > /kind bug would simply become: /kind bug

/kind bug

What does does this PR do / why we need it:

This is a temporary fix by removing the current feature of being able to
pass in a component name to odo delete.

For example. odo delete foobar does not work. We remove that
functionality so you may only specify odo delete in the current
directory.

Which issue(s) this PR fixes:

Does not fix any issues, but please see: #3892

PR acceptance criteria:

How to test changes / Special notes to the reviewer:

odo create nodejs --starter
odo push
odo delete

Signed-off-by: Charlie Drage charlie@charliedrage.com

**What type of PR is this?**
> Uncomment only one ` /kind` line, and delete the rest.
> For example, `> /kind bug` would simply become: `/kind bug`

/kind bug

**What does does this PR do / why we need it**:

This is a temporary fix by removing the current feature of being able to
pass in a component name to `odo delete`.

For example. `odo delete foobar` does not work. We remove that
functionality so you may only specify `odo delete` in the current
directory.

**Which issue(s) this PR fixes**:

Does not fix any issues, but please see: redhat-developer#3892

**PR acceptance criteria**:

- [X] Unit test

- [X] Integration test

- [X] Documentation

- [X] I have read the [test guidelines](https://github.com/openshift/odo/blob/master/docs/dev/test-architecture.adoc)

**How to test changes / Special notes to the reviewer**:

```sh
odo create nodejs --starter
odo push
odo delete
```

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 21, 2020
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign cdrage
You can assign the PR to them by writing /assign @cdrage in a comment when ready.

The full list of commands accepted by this bot can be found 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-robot
Copy link
Collaborator

@cdrage: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/unit baff7c2 link /test unit

Full PR test history. Your PR dashboard.

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.

Short: "Delete component",
Long: "Delete component.",
Example: fmt.Sprintf(deleteExample, fullName),
Args: cobra.MaximumNArgs(1),
Args: cobra.MaximumNArgs(0),
Copy link
Member

@johnmcollier johnmcollier Sep 21, 2020

Choose a reason for hiding this comment

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

Should we still allow a name to be passed in when --s2i is used? Or no, to keep it consistent?

@cdrage cdrage closed this Sep 21, 2020
@cdrage
Copy link
Member Author

cdrage commented Sep 21, 2020

Closing for now. We should check this post-release as to not break any compatibility with current s2i components.

@cdrage cdrage deleted the temp-fix-odo-delete branch January 14, 2022 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants