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

Legacy environment variables cleanup #12679

Closed
skabashnyuk opened this issue Feb 18, 2019 · 8 comments
Closed

Legacy environment variables cleanup #12679

skabashnyuk opened this issue Feb 18, 2019 · 8 comments
Assignees
Labels
kind/enhancement A feature request - must adhere to the feature request template. kind/task Internal things, technical debt, and to-do tasks to be performed. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@skabashnyuk
Copy link
Contributor

Description

We have quite a lot of environment variable providers that was used in Che6 workspaces that making Che7 plugin configuration complex.
For example, it's very hard to override JAVA_OPTS or MAVEN_OPTS today.
I think we should remove these providers providers

  • JavaOptsEnvVariableProvider
  • MavenOptsEnvVariableProvider
  • WorkspaceAgentCorsAllowCredentialsEnvVarProvider
  • WorkspaceAgentCorsAllowedOriginsEnvVarProvider
  • WorkspaceAgentCorsEnabledEnvVarProvider
  • AgentAuthEnableEnvVarProvider
  • WorkspaceAgentJavaOptsEnvVariableProvider
@skabashnyuk skabashnyuk added kind/task Internal things, technical debt, and to-do tasks to be performed. team/platform labels Feb 18, 2019
@svor
Copy link
Contributor

svor commented Feb 21, 2019

Since jdt.ls should be run as a sidecar in Che 7, it would be useful to override JAVA_OPTS.
Also it may help to solve the problem: #12708

@skabashnyuk
Copy link
Contributor Author

@slemeur @l0rd are you sure we need this for GA? It will introduce some incompatibility with Che6 workspaces.

@l0rd
Copy link
Contributor

l0rd commented May 27, 2019

@skabashnyuk I am not sure I understand your comment. With Che 7 we are going to break compatibility with Che 6 workspaces. I assumed that it was clear but it looks like it isn't?

@skabashnyuk
Copy link
Contributor Author

skabashnyuk commented May 27, 2019

@l0rd
When we decided to remove this classes

JavaOptsEnvVariableProvider
MavenOptsEnvVariableProvider
WorkspaceAgentCorsAllowCredentialsEnvVarProvider
WorkspaceAgentCorsAllowedOriginsEnvVarProvider
WorkspaceAgentCorsEnabledEnvVarProvider
AgentAuthEnableEnvVarProvider
WorkspaceAgentJavaOptsEnvVariableProvider

Che 6 workspaces a likely will not work. So my question is this should happen before or after GA

@l0rd
Copy link
Contributor

l0rd commented May 27, 2019

I think we can do that as soon as we have removed all Che 6 stacks.

@ibuziuk
Copy link
Member

ibuziuk commented Jun 14, 2019

@skabashnyuk looks like I'm facing this problem with spring-rest-guide devfile https://github.com/ibuziuk/my-che-devfiles/tree/master/spring-rest-guide#not-possible-to-override-java_opts-or-maven_opts-in-the-devfile Any ideas if it is possible to override the MAVEN_OPTS somehow?

@metlos
Copy link
Contributor

metlos commented Jun 25, 2019

There is a draft impl provided by @skabashnyuk: #13612

@metlos
Copy link
Contributor

metlos commented Jun 26, 2019

#13612 is ready for review

@l0rd l0rd mentioned this issue Jun 27, 2019
85 tasks
@l0rd l0rd added kind/enhancement A feature request - must adhere to the feature request template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. target/che7GA labels Jun 27, 2019
@l0rd l0rd added this to the 7.0.0 milestone Jun 27, 2019
@l0rd l0rd removed the severity/P2 Has a minor but important impact to the usage or development of the system. label Jun 28, 2019
@metlos metlos closed this as completed Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. kind/task Internal things, technical debt, and to-do tasks to be performed. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

6 participants