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

hide ServiceBinding from odo service list #4861

Closed
1 task
kadel opened this issue Jun 30, 2021 Discussed in #4844 · 6 comments · Fixed by #5015
Closed
1 task

hide ServiceBinding from odo service list #4861

kadel opened this issue Jun 30, 2021 Discussed in #4844 · 6 comments · Fixed by #5015
Assignees
Labels
estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person kind/user-story An issue of user-story kind priority/Medium Nice to have issue. Getting it done before priority changes would be great. v2 Issue or PR that applies to the v2 of odo
Projects

Comments

@kadel
Copy link
Member

kadel commented Jun 30, 2021

User Story

  • As a developer
  • I don't want to see ServiceBinding resource in odo service list
  • Because technically it is not a service that my application can consume

Acceptance Criteria

  • odo service list should filter our ServiceBinding resources from the output

/kind user-story
/priority medium
/area service
/area service-binding

@openshift-ci openshift-ci bot added kind/user-story An issue of user-story kind priority/Medium Nice to have issue. Getting it done before priority changes would be great. area/service labels Jun 30, 2021
@dharmit dharmit added this to For Consideration in Sprint 205 via automation Jul 15, 2021
@dharmit dharmit added the triage/needs-information Indicates an issue needs more information in order to work on it. label Jul 23, 2021
@feloy feloy added triage/ready and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels Jul 26, 2021
@feloy
Copy link
Contributor

feloy commented Jul 26, 2021

Services are collected from boath places:

  • devfile
  • cluster

Services with a kind ServiceBinding should be ignored from both places.

As the list of services is used internally to check which services should be deleted when running odo push, we have to take care to adapt this part of the code also.

For the moment, all kubernetes components in the devfile are considered services. It would be interesting to differentiate services from links (from other Kubernetes resources - #4685).

@dharmit
Copy link
Member

dharmit commented Jul 27, 2021

@feloy do you think we will need to add some tests as a part of the PR for this issue? I can think of integration tests which ensure that we don't show ServiceBinding/<name> in the odo service list output.

@feloy
Copy link
Contributor

feloy commented Jul 27, 2021

@feloy do you think we will need to add some tests as a part of the PR for this issue? I can think of integration tests which ensure that we don't show ServiceBinding/<name> in the odo service list output.

Yes, I can think of integration tests to verify that links are not visible, either when they are pushed and unpushed.

@dharmit
Copy link
Member

dharmit commented Jul 29, 2021

As the list of services is used internally to check which services should be deleted when running odo push, we have to take care to adapt this part of the code also.

Some work for this has already been started in #4905 where we first push the Operator backed services, then the Deployment and finally the link. Worth taking a look at it's code for this issue.

@dharmit dharmit added the estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person label Jul 29, 2021
@dharmit dharmit moved this from For Consideration to To Do in Sprint 205 Jul 29, 2021
@mohammedzee1000 mohammedzee1000 moved this from To Do to In Progress in Sprint 205 Aug 2, 2021
@mohammedzee1000
Copy link
Contributor

Looking through PR linked by dharmit

@dharmit dharmit added this to For Consideration in Sprint 206 via automation Aug 16, 2021
@dharmit dharmit moved this from For Consideration to To Do in Sprint 206 Aug 16, 2021
@mohammedzee1000
Copy link
Contributor

mohammedzee1000 commented Aug 18, 2021

I will have the PR open first thing once the release work is done (or maybe even during release)

@dharmit dharmit removed this from In Progress in Sprint 205 Aug 19, 2021
@mohammedzee1000 mohammedzee1000 moved this from To Do to In Progress in Sprint 206 Aug 23, 2021
@dharmit dharmit moved this from In Progress to For Review in Sprint 206 Aug 25, 2021
Sprint 206 automation moved this from For Review to Done Aug 26, 2021
@rm3l rm3l added the v2 Issue or PR that applies to the v2 of odo label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
estimated-size/M (10-20) Rough sizing for Epics. About 1 sprint of work for one person kind/user-story An issue of user-story kind priority/Medium Nice to have issue. Getting it done before priority changes would be great. v2 Issue or PR that applies to the v2 of odo
Projects
Archived in project
Sprint 206
  
Done
Development

Successfully merging a pull request may close this issue.

5 participants