Closed amisevsk closed 2 years ago
A related change in chectl that affects how downstream dsc behaves is:
- ctx.operatorNamespace = flags.chenamespace || DEFAULT_CHE_NAMESPACE
ctx.operatorNamespace = DEFAULT_OPENSHIFT_OPERATORS_NS_NAME
So now, with 7.48.1/main version of chectl, it seems that installation with both --olm-suggested-namespace
and --no-olm-suggested-namespace
do the same thing. See details in:
At the very least, perhaps we want to reverse the default on/off setting here for the 7.46.x branch == 3.0?
'olm-suggested-namespace': boolean({
default: true,
allowNo: true,
description: `Indicate to deploy Red Hat OpenShift Dev Spaces in OLM suggested namespace: '${DEFAULT_OLM_SUGGESTED_NAMESPACE}'.
Flag 'chenamespace' is ignored in this case
This parameter is used only when the installer is 'olm'.`,
replace with:
'olm-suggested-namespace': boolean({
default: false,
allowNo: true,
description: `Deploy Red Hat OpenShift Dev Spaces CheCluster and related deployments,
pods, routes in default namespace: '${DEFAULT_OLM_SUGGESTED_NAMESPACE}'.
If using custom namespace flag 'chenamespace', must use `--no-olm-suggested-namespace`
I removed olm-suggested-namespace
flag since it make no sense now
Describe the bug
When using
chectl server:deploy
with theolm
installer on OpenShift, there are two steps:Normally, installing Che will install the Operator to the
openshift-operators
namespace (the default for 'all-namespaces' operators), and create the CheCluster in theeclipse-che
namespace.However, defining these options in chectl is very strange. The relevant options are
By default,
--olm-suggested-namespace
is assumed, and the-n
flag is ignored. However, from an OLM perspective,chectl
uses the suggested namespace for the CheCluster, not the Operator.openshift-operators
, as it is for all 'all-namespaces' operators:In order to install Eclipse Che so that
openshift-operators
my-namespace
it's necessary to specify the arguments
which is confusing as the OLM suggested namespace should have no bearing on where the CheCluster is created.
Che version
next (development version)
Steps to reproduce
Execute
chectl server:deploy -p openshift
Expected behavior
Now that the Che Operator is an 'all-namespaces' operator, the
--[no-]olm-suggested-namespace
flags should be removed. Chectl does not support installing the Operator itself to a different namespace (to my knowledge) and is currently using this parameter to control where the CheCluster is deployed.Runtime
OpenShift
Screenshots
No response
Installation method
chectl/next
Environment
Linux
Eclipse Che Logs
No response
Additional context
No response