app-services-cli icon indicating copy to clipboard operation
app-services-cli copied to clipboard

Ability to bind an application running in CRW workspace to a managed service

Open jfdenise opened this issue 4 years ago • 3 comments

Feature or problem description

Today the rhoas CLI bind command requires a service and an app to inject the secret in the app deployment.

I am in a context where I want to bind a deployment running inside a CRW workspace container to a service (eg: kafka).

I can't target the CRW workspace deployment, the CRW POD will not get re-started (that is the CRW behavior).

Proposed solution

  • Add the ability to create the secret that would be bound without providing an app. The secret would then be explicitly mounted

rhoas cluster create-secret --service-name kafka

  • Offer an out of the box solution to bind to CRW workspaces.

The doc explains how secrets are to be formatted for CRW to automatically mount them.

Something like: rhoas cluster bind --service-name kafka --crw-workspace

The secret would then be created in the user project with the CRW expected labels. Secret would then be automatically mounted when the workspace starts.

jfdenise avatar Dec 03 '21 17:12 jfdenise

@jfdenise This fix is on our roadmap. We going to build secret in cli and give developer ability to apply it the best way possible.

wtrocki avatar Dec 03 '21 21:12 wtrocki

@wtrocki would these be mounted in same way as ServiceBinding spec ? that would be interesting imo .

maxandersen avatar Dec 16 '21 14:12 maxandersen

Yes. Idea is to move from CLI creating resources using API to CLI creating files that you can include with your Quarkus app deployment, helm etc. Shared internal doc with you

wtrocki avatar Dec 16 '21 14:12 wtrocki