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

In the Operator Go code, remove remaining default values that require overriding in downstream #16868

Closed
davidfestal opened this issue May 7, 2020 · 4 comments
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@davidfestal
Copy link
Contributor

Is your enhancement related to a problem? Please describe.

The Operator Go code should be shared between upstream and downstream releases of the Che operator. That's one of the reasons why most of the default values that finally are different between upstream and downstream (like default docker images or CHE_VERSION) have been extracted from the GO code and included as environment variables in the operator deployment files that are specific to either downstream or upstream flavors.
However there are still a few default values that should be extracted this way, for example:

Maybe there are others places to consider.

Describe the solution you'd like

Allow the downstreaming process to import the code form an upstream release branch without having to change anything to it.

Describe alternatives you've considered

Additional context

@davidfestal davidfestal added kind/enhancement A feature request - must adhere to the feature request template. area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator team/deploy labels May 7, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label May 7, 2020
@tolusha tolusha added the severity/P1 Has a major impact to usage or development of the system. label May 7, 2020
@tolusha tolusha added this to the Backlog - Deploy milestone May 7, 2020
@flacatus flacatus removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label May 7, 2020
@tolusha tolusha mentioned this issue May 8, 2020
56 tasks
@tolusha
Copy link
Contributor

tolusha commented May 8, 2020

#16305

@tolusha
Copy link
Contributor

tolusha commented May 8, 2020

@davidfestal
I don't think default values for tests make have any effects on downstream projects.
In defaults_test.go we just set the env var and then read default values to ensure the are initialized correctly.

@nickboldt
Could you have a look at defaults.go and say what else you would like to move to env var ?

@tolusha
Copy link
Contributor

tolusha commented May 8, 2020

corresponding PR
eclipse-che/che-operator#247

@nickboldt
Copy link
Contributor

PR looks ok, left a comment about 3 more vars we could override/expose.

Also wondering if you saw #16815

@tolusha tolusha closed this as completed May 13, 2020
@tolusha tolusha modified the milestones: Backlog - Deploy, 7.13 May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants