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

Replace the use of custom operator config map with a map inside the custom resource. #14635

Closed
davidfestal opened this issue Sep 23, 2019 · 4 comments
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator area/install Issues related to installation, including offline/air gap and initial setup 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.

Avoid the need to use the custom config map to override any customized Che server property (not driven by the CheCluster custom resource).
Instead we shoud have a way to override Che server properties directly inside the Custom resource.

Describe the solution you'd like

Have a map of values inside the CheCluster custom resource to allow overriding any Che server property. Something like:

 server:
    # server image used in Che deployment
    cheImage: ''
    # tag of an image used in Che deployment
    cheImageTag: 'nightly'
    ........ etc, etc ....
    overrideCheProperties:
    - name: CHE_SERVER_PROPERTY_1
       value: propValue1
    - name: CHE_SERVER_PROPERTY_2
       value: propValue2
  auth:
    .......etc, etc .....
@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 labels Sep 23, 2019
@ibuziuk ibuziuk added this to the Backlog - Hosted Che milestone Sep 23, 2019
@nickboldt nickboldt added the area/install Issues related to installation, including offline/air gap and initial setup label Sep 23, 2019
@nickboldt
Copy link
Contributor

Adding installation label as this is something we need for product.

@tomgeorge
Copy link
Contributor

tomgeorge commented Sep 30, 2019

Is there a requirement that you cannot set things in overrideCheProperties that isn't a Che property? e.g. am I allowed to:

overrideCheProperties:
  - name: ARBITRARY_CHE_PROP_THAT_DOESNT_CONTROL_ANYTHING
    value: bar

@davidfestal
Copy link
Contributor Author

No. We don't need validation, at least at first.

@amisevsk
Copy link
Contributor

amisevsk commented Oct 1, 2019

While I think some validation would be useful in case of typos, I don't know if it would be possible to actually implement that check, as Che will consume and env var that begins with CHE_ and convert it to a property. Having some sort of check here might require maintaining the list of "acceptable" overrides, in case they are later added to Che.

Up to David in the end, though.

Edit: responded while I was typing the message, disregard :)

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 area/install Issues related to installation, including offline/air gap and initial setup 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