-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Restrict the installation of Eclipse Che only to the 'eclipse-che' namespace #17187
Comments
@sleshchenko could you please clarify how do you do the trick with the installation of the web terminal operator to the concrete namespace? |
I trust there will be a way to override (set the specific namespace) and disable (not restrict) so that we can:
WDYT? |
@ibuziuk the web terminal operator is using the Mainly the following quote:
|
@ibuziuk something I was discussing this morning with @davidfestal: we may use @nickboldt has raised some interesting points. I don't think we should make the namespace configurable though:
This can be a build option but not a runtime option (i.e. users/customers should not change that).
I think the recommendation here is to receive telemetry even for our own tests. They can be useful, we need to verify that sending metrics works fine and they are easy to filter out. cc @spaparaju
If would discourage this: why do we want to tests scenarios that nobody will ever test? To find, analyse and fix bugs that nobody will ever find? We should not support/test multiple instances of Che on the same Kubernetes cluster. cc @rhopp |
I would love to avoid running multiple instances on the same cluster, but as Nick said, we don't have enough resources for doing so. If this will become hard-restriction (now it's soft restriction in sense it is possible to install multiple instances on single cluster, but it's discouraged or officially not supported) it will be quite a hurdle for QE to overcome. |
If we want user to restrict users to one namespace and one instance of Che per cluster we should enforce this restriction when testing as well. @rhopp is this an upstream or downstream tests constraint? Is there an issue that describes the problem (i.e. in what circumstances we need to run multiple instances of Che and what options have been considered)? |
Sorry, the Pros aren't convincing enough. |
@tolusha could you clarify a clear use-case (with configuration) for having 2+ manageable instancies of Eclipse Che on the same cluster (instances for testing are not taken into account)? |
@ibuziuk |
Che-server development. |
@skabashnyuk Che-server development e.g. usage of the che-dev OSD v4 Cluster case? |
I'm sorry. I didn't understand your question. |
@skabashnyuk could you clarify your point about Che-server development in regards to the fixed namespace enforcement? |
@ibuziuk you probably right. This topic is about che + operator. che-server development does not require it. |
Right: we want to avoid that a user can select any namespace when deploying Che using the operator or chectl. But the che-server should be able to run in any namespace. It should NOT give for granted that it will run in There are at least 3 reasons why we want deployments to happen in one fixed namespace:
@ibuziuk this is a change that needs to be communicated on different channels (che-dev, Red Hat internal mailing lists etc...) before it becomes effective. |
@l0rd got it. As the initial step we are going to define ''eclipse-che" as the suggested namespace on the operator / olm end: This should target the second bullet (avoid the common deployment failure when it gets installed in default namespace) and make the overall UX cleaner and more predictable |
@ibuziuk nice! |
More reasons to reconsider this as a new standard / use cases for more than one CRW install on the same cluster:
Also,
It's both -- we use the 3 QE OCP instances for testing Che and CRW alike. |
@nickboldt if there are no blockers/showstoppers during the implementation we are going to enable this for 7.18.0 |
Another use case suggested by Dom on the Community Call:
|
thanks @nickboldt 👍 , can we please list the cons as well to this if possible? |
@SDAdham added to the description. Could you clarify the use-case with stable and snapshot (nightly?) deployment a bit more. |
@nickboldt @SDAdham @ibuziuk we should discourage scenarios with 2 versions of CRW (stable and test) installed via the operator on the same cluster because both will share the same |
We should continue supporting multiple instances of Che on the same cluster using helm though. |
@l0rd just to clarify by helm support of multiple instances, do you mean chectl + helm installer? |
I don't see any reason to limit the installations to one instance per cluster. I'll speak for K8S deployments as that's what I'm using che on, but I'm sure the concept should remain the same for openshift, etc... Use case: Running prod and dev/test environment of In regards to how-tos, I'm not part of the architecture of che to know the best approach, but I can imagine:
If on K8S, a namespace can't make changes to another namespaces (i.e master node che running in namespace Any custom installation other than |
What "disruptive side effects" can happen as a result of having multiple instances? |
@SDAdham fields of the CheCluster CRD can be added/removed/updated during an update and that may make one of your 2 CheCluster CR incompatible with the new CRD. In other words, you can isolate your Che instances in 2 different namespaces, but the operator Custom Resource Definition is defined at cluster level: if you update it both Che instances will be affected. @ibuziuk yes helm charts installed via chectl: no CRD, no cluster privileges required, configurable namespace |
+1 for @nickboldt ideas about the need for more than one instance per cluster. |
As discussed a few weeks back with @RickJWagner a good compromise for users that are cautious about updates is to implement operand rollback in case of unsuccessful upgrade. Hence this issue is blocked by #18043. |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Closing as outdated |
Is your task related to a problem? Please describe.
The only namespace for Eclipse Che installation should be 'eclipse-che'. It should be prohibited to install Eclipse Che to any other namespace.
Describe the solution you'd like
When Eclipse Che is installed via Operatorhub it should be possible to install it only in the 'eclipse-che' namespace
List of subtasks:
-n, --chenamespace=chenamespace
option from chectl and always fall back on 'eclipse-che'? (or leave it only for thehelm
installer?)Describe alternatives you've considered
Continue allowing namespace selection during the installation
Additional context
Pros:
default
namespaceopenshift-*
namespace restriction - https://github.com/openshift/enhancements/blob/master/enhancements/olm/olm-managed-operator-metrics.md#fulfilling-namespace-and-rbac-requirements)Cons:
The text was updated successfully, but these errors were encountered: