-
Notifications
You must be signed in to change notification settings - Fork 242
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 link to link devfile components with each other #3423
Comments
@dharmit: The label(s) In response to this:
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. |
Adding needs info to understand how much we need this in this sprint and also to research if we can use Service Binding Operator to link components. I remember reading in their README that we can but I need to read/understand beyond that. /triage need-information |
@dharmit: The label(s) In response to this:
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. |
/triage needs-information |
also consider the idea of linking a devfile component with an s2i component? |
If an end-user comes with this request, we can consider adding the support. But since we plan to move away from s2i components, adding this feature doesn't help add much value presently. |
When we link one s2i component to another, we inject the data from the secret created at the time of pushing the component. For example, when we link component A with component B ( As far as Devfile components are concerned, I don't see us creating a secret for a component like we do for s2i components. Is this a conscious decision in any way? @kadel @girishramnani So for the scope of this issue, we will have to:
|
ideally shouldn’t we create secrets @dharmit |
I tried to link two components without creating a secret for any of them. But that didn't work. I've opened an issue on the SBO repo to understand if doing this is possible using SBO. redhat-developer/service-binding-operator#722 |
While waiting to get more clarity on how/whether to use SBO to do this, I'm going to start working on the first acceptance criteria of this issue - |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/lifecycle frozen |
With correct annotations on odo created |
Why it should create a Secret? Secret presence is not required for binding. The secret will be created by SBO. |
each Service generated for odo devfile component should have annotations like this: annotations:
service.binding/backend_ip: path={.spec.clusterIP}
service.binding/backend_port: path={.spec.ports},elementType=sliceOfMaps,sourceKey=name,sourceValue=port
than the
The resulting apiVersion: binding.operators.coreos.com/v1alpha1
kind: ServiceBinding
metadata:
name: java-maven
spec:
application:
group: apps
name: frontend
resource: deployments
version: v1
bindAsFiles: false
detectBindingResources: true
services:
- group: ""
kind: Service
name: backend
version: v1 This will expose env variables in frontend compoentn
Note:
If port name is for example |
Currently the devfile library generator doesn't allow to specify annotations while generating the service object https://github.com/devfile/library/blob/2aa02fa8648870c543dea5e45185a7333fcd35c3/pkg/devfile/generator/generators.go#L149. We will need to manually add it to the generated service object or make the required changes to the devfile library. |
The best approach might be to update devfile library to include the service annotations automatically |
We can specify the annotations with the current library version used by odo using the method The |
/kind user-story
User Story
As a user I want to link a devfile component with another devfile component so that I can develop and deploy and a multi-component microservices application on k8s/OCP.
Acceptance Criteria
covered by odo link should store link information in devfile #4208.odo push
should create a Secret on the cluster for devfile componentsodo link <component-name>
, when executed from a devfile component directory, should link the component with anotherLinks
/area devfilev2
/area link
The text was updated successfully, but these errors were encountered: