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

Yaml plugin should not need to be run inside its own side car container #13555

Open
sunix opened this issue Jun 17, 2019 · 11 comments
Open

Yaml plugin should not need to be run inside its own side car container #13555

sunix opened this issue Jun 17, 2019 · 11 comments
Labels
area/plugin-registry kind/enhancement A feature request - must adhere to the feature request template. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@sunix
Copy link
Contributor

sunix commented Jun 17, 2019

Description

At the moment the yaml plugin is using eclipse/che-theia-endpoint-runtime:next but don't really need additional dependencies from the side car container. So it make sense to move that into the Theia-ide container.
https://github.com/eclipse/che-plugin-registry/blob/master/v3/plugins/redhat/vscode-yaml/0.4.0/meta.yaml#L15

@sunix sunix added the kind/enhancement A feature request - must adhere to the feature request template. label Jun 17, 2019
@tsmaeder
Copy link
Contributor

If you have it in the theia image, you can't turn it off. The real solution here would be to implement the idea @benoitf and @tsmaeder had a long time ago to run all plugins that use the same base image in the same container.

@benoitf
Copy link
Contributor

benoitf commented Sep 10, 2019

here we could just remove the image in meta.yaml so it goes in theia container (the default)

@amisevsk
Copy link
Contributor

There is an issue with not running plugins in sidecars though, if they require a significant amount of memory. Since the theia container has a relatively tight default memoryLimit, adding any plugins that require memory would also require manually increasing the memory allocated to Theia.

We currently don't have a good flow for accomodating additional plugins in the Theia container (we should e.g. take the memory limit from the plugin and add it to the theia container's default limit).

@gorkem
Copy link
Contributor

gorkem commented Sep 11, 2019

@amisevsk although this is correct YAML LS works on a single file so it is relatively nimble. Alternately you can consider running it inside the browser just like it is done for Openshift console.

@amisevsk
Copy link
Contributor

@gorkem I agree here, but created issue #14511 for discussion in any case (I'm guessing the alternative there is what we'll end up doing anyways).

@sunix
Copy link
Contributor Author

sunix commented Sep 11, 2019

If you have it in the theia image, you can't turn it off. The real solution here would be to implement the idea @benoitf and @tsmaeder had a long time ago to run all plugins that use the same base image in the same container.

turn off -> just remove the plugin from the devfile, no ?

@tsmaeder
Copy link
Contributor

tsmaeder commented Sep 12, 2019

If you mean @benoitf's idea to remove the image from the plugin, yes, that would work. However, I find it unsatisfactory that we have to special-case this: if we implemented container-sharing, we could reap the benefits for every container, not just theia.
I believe our code would be simpler if the host running plugins in the "theia" container were the same as every other host running plugins. Turtles all the way down!

@che-bot
Copy link
Contributor

che-bot commented Jun 17, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 17, 2020
@tsmaeder
Copy link
Contributor

/remove-lifecycle stale

@che-bot che-bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 17, 2020
@che-bot
Copy link
Contributor

che-bot commented Jan 4, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 4, 2021
@gorkem gorkem removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 4, 2021
@ericwill
Copy link
Contributor

ericwill commented Jan 5, 2021

I guess this is still relevant, since vscode-yaml is using the node sidecar these days.

@ericwill ericwill added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin-registry kind/enhancement A feature request - must adhere to the feature request template. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

8 participants