-
Notifications
You must be signed in to change notification settings - Fork 167
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
[WIP] Add docs about using next-all-namespace OLM channel. #2174
Closed
AndrienkoAleksandr
wants to merge
1
commit into
eclipse-che:master
from
AndrienkoAleksandr:CHE-20602
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...s/administration-guide/pages/switch-che-to-next-all-namespaces-olm-channel.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[id="switch_che-to-next-all-namespaces-olm-channel"] | ||
|
||
:navtitle: Swich {prod} to "next-all-namespaces" OLM channel | ||
:keywords: administration-guide, swich-to-next-olm-channel | ||
:page-aliases: .:switch-olm-next-all-namespaces | ||
|
||
include::partial$proc_switch_che-to-next-all-namespaces-olm-channel.adoc[] |
89 changes: 89 additions & 0 deletions
89
...stration-guide/partials/proc_switch_che-to-next-all-namespaces-olm-channel.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
[id="switch_che-to-next-all-namespaces-olm-channel_{context}"] | ||
= Switch {prod} Che to next all namespace OLM channel | ||
|
||
{prod} instance installed using OLM can be switched to use "next-all-namespaces" OLM channel for testing new features or bug fixes purpose. | ||
|
||
> Alert: {prod} installed from "stable" OLM channel before migration to "next-all-namespace" should be migrated to {devworkspace} engine and this process is not backward compatible. | ||
|
||
.Prerequisites | ||
|
||
* The `{orch-cli}` tool is available. | ||
* An instance of {prod-short} running in OpenShift 4 cluster. | ||
|
||
.Procedure | ||
|
||
Make user migration {link} if your previous OLM channel was "stable" or "next". | ||
|
||
.Delete current {prod} operator. | ||
|
||
Set up namespace "CHE_NAMESPACE" for "stable" or "next" OLM channels: | ||
|
||
[source,shell,subs="+attributes"] | ||
---- | ||
$ CHE_NAMESPACE="{prod-namespace}" | ||
---- | ||
|
||
or "openshift-operators" for "tech-preview-stable-all-namespaces" channel: | ||
|
||
[source,shell,subs="+attributes"] | ||
---- | ||
$ CHE_NAMESPACE="openshift-operators" | ||
---- | ||
|
||
Delete OLM subscription "{prod-checluster}" and current cluster service version. | ||
|
||
[subs="+attributes"] | ||
---- | ||
$ SUBSCRIPTION=$(oc get subscription -n ${CHE_NAMESPACE} -o custom-columns=POD:.metadata.name --no-headers | grep eclipse-che) | ||
$ CSV_VERSION_NAME=$(oc get subscription ${SUBSCRIPTION} -n ${CHE_NAMESPACE} -o jsonpath="{.status.currentCSV}") | ||
$ oc delete subscription ${SUBSCRIPTION} -n ${CHE_NAMESPACE} | ||
$ oc delete clusterserviceversion "${CSV_VERSION_NAME}" -n ${CHE_NAMESPACE} | ||
---- | ||
|
||
.Switch to "tech-preview-stable-all-namespaces" OLM channel. | ||
|
||
Create "next" catalog source: | ||
|
||
[subs="+quotes,+attributes"] | ||
---- | ||
$ oc apply -f - <<EOF | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: CatalogSource | ||
metadata: | ||
name: eclipse-che-next-catalog | ||
namespace: openshift-operators | ||
spec: | ||
image: quay.io/eclipse/eclipse-che-openshift-opm-catalog:next | ||
sourceType: grpc | ||
updateStrategy: | ||
registryPoll: | ||
interval: 5m | ||
EOF | ||
---- | ||
|
||
Create new subscription for "next-all-namespaces" OLM channel: | ||
|
||
[subs="+quotes,+attributes"] | ||
---- | ||
$ oc apply -f - <<EOF | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: {prod-checluster} | ||
namespace: openshift-operators | ||
spec: | ||
channel: next-all-namespaces | ||
installPlanApproval: Automatic | ||
name: eclipse-che-preview-openshift | ||
source: eclipse-che-next-catalog | ||
sourceNamespace: openshift-operators | ||
EOF | ||
---- | ||
|
||
Enable single host and {devworkspace} engine in the custom resource: | ||
|
||
[subs="+attributes"] | ||
---- | ||
$ oc patch checluster/{prod-checluster} -n {prod-namespace} --type=json -p \ | ||
'[{"op": "replace", "path": "/spec/devWorkspace/enable", "value": true}, {"op": "replace", "path": "/spec/server/serverExposureStrategy", "value": "single-host"}]' | ||
---- |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as outdated.
Sorry, something went wrong.