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

PodSpecable Integration #2096

Closed
astefanutti opened this issue Mar 4, 2021 · 10 comments · Fixed by #1861
Closed

PodSpecable Integration #2096

astefanutti opened this issue Mar 4, 2021 · 10 comments · Fixed by #1861
Assignees
Labels
area/core Core features of the integration platform kind/feature New feature or request

Comments

@astefanutti
Copy link
Member

astefanutti commented Mar 4, 2021

In a growing number of use-cases, it is preferable, or expected, that the Integration resource be PodSpecable.

The main use cases are:

It is also useful in the general case, to enable the generic configuration of the Integration pods: #1657.

@astefanutti astefanutti added the area/core Core features of the integration platform label Mar 4, 2021
@johnpoth
Copy link
Member

johnpoth commented Mar 4, 2021

In the case of Service Binding, the specification has alleviated that constraint

@astefanutti
Copy link
Member Author

In the case of Service Binding, the specification has alleviated that constraint

Would that simplify or not to have Integration PodSpec-able w.r.t. Service Binding?

@mmelko
Copy link
Contributor

mmelko commented Mar 5, 2021

I can look at this.

@lburgazzoli
Copy link
Contributor

@astefanutti @nicolaferraro wonder if when making making an integration podspecable (but I think also other resources like the kamelet binding can benefit from it), then if I define an image with name "integration" (or whatever we decide to use to identify the integration container), that should be considered as an equivalent of a kit so in that case, no build should be performed

@astefanutti
Copy link
Member Author

astefanutti commented Mar 11, 2021

@lburgazzoli that sounds logical. There is no need for creating a build whose resulting image is overwritten by the Integration PodSpec.

That can lead to inconsistencies, e.g. with the Dependencies field. Though Pod-Specability is a mechanism that brings high-level of configurability, hence must be used responsibly.

An idea, if we try to map the logic of merging rather than replacing, to container images, could be to use the provided image as the base image?

@nicolaferraro
Copy link
Member

@lburgazzoli that sounds logical. There is no need for creating a build whose resulting image is overwritten by the Integration PodSpec.

That can lead to inconsistencies, e.g. with the Dependencies field. Though Pod-Specability is a mechanism that brings high-level of configurability, hence must be used responsibly.

An idea, if we try to map the logic of merging rather than replacing, to container images, could be to use the provided image as the base image?

Yeah, sounds interesting, but I guess the image at the moment misses the relevant metadata (e.g. list of dependencies included) to let us perform merging. Although containers have labels as well...

@astefanutti
Copy link
Member Author

Yeah, sounds interesting, but I guess the image at the moment misses the relevant metadata (e.g. list of dependencies included) to let us perform merging. Although containers have labels as well...

Right, probably better to keep it simple!

@lburgazzoli
Copy link
Contributor

That can lead to inconsistencies, e.g. with the Dependencies field. Though Pod-Specability is a mechanism that brings high-level of configurability, hence must be used responsibly.

We can add validations so i.e. if you put a container image and dependencies, then we fail

@mmelko
Copy link
Contributor

mmelko commented Mar 16, 2021

Currently I've created a pod trait that will merge the PodTemplateSpec from the integration into deployment's one. I guess those validation should be done also from the pod trait right? Do we know any other things that shouldn't be replaced/modified ?

@mmelko
Copy link
Contributor

mmelko commented Mar 18, 2021

wip PR: #1861 so far without any validations

@astefanutti astefanutti added the kind/feature New feature or request label Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Core features of the integration platform kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants