ods-provisioning-app icon indicating copy to clipboard operation
ods-provisioning-app copied to clipboard

Pull the projects list from OC

Open sino92 opened this issue 6 years ago • 6 comments

Is your feature request related to a problem? Please describe. After hitting modify an existing project and go through the list, we see projects that are already removed from OCP.

Describe the solution you'd like Get the list of projects using an oc command

Describe alternatives you've considered none

Additional context none

sino92 avatar Jan 14 '20 10:01 sino92

@michaelsauter @clemensutschig @stitakis @oalyman Thoughts?

sino92 avatar Jan 20 '20 09:01 sino92

I think it makes a lot of sense to use openshift as the source for the project list.

stitakis avatar Jan 20 '20 09:01 stitakis

Another issue with the current approach is that you do NOT see projects that were migrated to a cluster. Since the provisioning app did not create the project, it does not know about it, so you cannot modify it :(

I am a bit unsure about the overall fit of this though. If the prov-app has direct access to OCP projects now, then this could raise the question if it shouldn't do the provisioning itself too, instead of going via Jenkins. However, I'm just raising this point so that we are aware of it - I'm still in favour of the proposed change.

michaelsauter avatar Jan 20 '20 10:01 michaelsauter

  • currently, you can provision a project and tick off to create open shift resources. So we need to change that if we want to use OS as source of truth.
  • what about the additional metadata that is currently stored in the local storage?
  • what namespaces should be visible to the provisioning app? In some environments you might not want to have all namespaces to be exposed to be modified

oalyman avatar Jan 20 '20 13:01 oalyman

Please see my comment to the 3 points mentioned by @oalyman

  1. currently, you can provision a project and tick off to create open shift resources. So we need to change that if we want to use OS as source of truth.

Do we want to be able to provision components to bitbucket with prov-app if the corresponding openshift project does not exists? If is not the case, then nothing to do here. If yes, then we need to think about a solution.

  1. what about the additional metadata that is currently stored in the local storage?

Is any metadata needed to fill the drop-down list? @sino92: can you please verify?

  1. what namespaces should be visible to the provisioning app? In some environments you might not want to have all namespaces to be exposed to be modified

Ideally I would display the list of projects that my user is permitted to provision to. Make sense?

stitakis avatar Jan 20 '20 13:01 stitakis

As the metadata, we'd need the component information of an existing OC project. We can use the project name to retrieve that information from OpenProjectData. The new class to pull existing OC projects won't replace LocalStorage.

sino92 avatar Jan 20 '20 13:01 sino92