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

Deprecate server:start command #486

Merged
merged 2 commits into from
Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/cico_minishift_nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ EOL
sed 's|quay.io/eclipse/che-operator:nightly|'${OPERATOR_IMAGE}'|' | \
oc apply -n ${NAMESPACE} -f -

chectl server:start --platform=minishift --skip-kubernetes-health-check --installer=operator --chenamespace=${NAMESPACE} --che-operator-cr-patch-yaml=/tmp/che-cr-patch.yaml --che-operator-image ${OPERATOR_IMAGE}
chectl server:deploy --platform=minishift --skip-kubernetes-health-check --installer=operator --chenamespace=${NAMESPACE} --che-operator-cr-patch-yaml=/tmp/che-cr-patch.yaml --che-operator-image ${OPERATOR_IMAGE}

# Create and start a workspace
getCheAcessToken # Function from ./util/ci_common.sh
Expand Down
2 changes: 1 addition & 1 deletion .ci/cico_openshift_shost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ EOL
cat /tmp/che-cr-patch.yaml

# Start to deploy Che
chectl server:start --platform=openshift --skip-kubernetes-health-check --installer=operator \
chectl server:deploy --platform=openshift --skip-kubernetes-health-check --installer=operator \
--chenamespace=${NAMESPACE} --che-operator-cr-patch-yaml=/tmp/che-cr-patch.yaml --che-operator-image=${OPERATOR_IMAGE}

# Create and start a workspace
Expand Down
6 changes: 3 additions & 3 deletions .ci/cico_updates_minishift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function installLatestCheStable() {
# Add stable Che images and tag to CR
sed -i'.bak' -e "s/cheImage: ''/cheImage: quay.io\/eclipse\/che-server/" "${OPERATOR_REPO}/tmp/che-operator/crds/org_v1_che_cr.yaml"
sed -i'.bak' -e "s/cheImageTag: ''/cheImageTag: ${previousPackageVersion}/" "${OPERATOR_REPO}/tmp/che-operator/crds/org_v1_che_cr.yaml"

# set 'openShiftoAuth: false'
sed -i'.bak' -e "s/openShiftoAuth: .*/openShiftoAuth: false/" ${OPERATOR_REPO}/tmp/che-operator/crds/org_v1_che_cr.yaml
cat ${OPERATOR_REPO}/tmp/che-operator/crds/org_v1_che_cr.yaml
Expand All @@ -75,7 +75,7 @@ function installLatestCheStable() {
cat "${OPERATOR_REPO}/tmp/che-operator/operator.yaml"

# Start last stable version of che
chectl server:start --platform=minishift --skip-kubernetes-health-check \
chectl server:deploy --platform=minishift --skip-kubernetes-health-check \
--che-operator-cr-yaml="${OPERATOR_REPO}/tmp/che-operator/crds/org_v1_che_cr.yaml" --templates="${OPERATOR_REPO}/tmp" \
--installer=operator
}
Expand All @@ -87,7 +87,7 @@ function waitForNewCheVersion() {
while [ $n -le 500 ]
do
cheVersion=$(oc get checluster/eclipse-che -n "${NAMESPACE}" -o "jsonpath={.status.cheVersion}")
cheIsRunning=$(oc get checluster/eclipse-che -n "${NAMESPACE}" -o "jsonpath={.status.cheClusterRunning}" )
cheIsRunning=$(oc get checluster/eclipse-che -n "${NAMESPACE}" -o "jsonpath={.status.cheClusterRunning}" )
oc get pods -n ${NAMESPACE}
if [ "${cheVersion}" == "${lastPackageVersion}" ] && [ "${cheIsRunning}" == "Available" ]
then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ EOL
oc apply -n ${NAMESPACE} -f -

# Start to deploy Che
chectl server:start --platform=minikube --skip-kubernetes-health-check --installer=operator \
chectl server:deploy --platform=minikube --skip-kubernetes-health-check --installer=operator \
--chenamespace=${NAMESPACE} --che-operator-image=${OPERATOR_IMAGE} --che-operator-cr-patch-yaml=/tmp/che-cr-patch.yaml

# Wait for workspace to be up for native deployment from ${PROJECT_DIR}/.github/action_scripts/minikube/function-utilities.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ EOL
oc apply -n ${NAMESPACE} -f -

# Start to deploy Che
chectl server:start --platform=minikube --skip-kubernetes-health-check --installer=operator \
chectl server:deploy --platform=minikube --skip-kubernetes-health-check --installer=operator \
--chenamespace=${NAMESPACE} --che-operator-image=${OPERATOR_IMAGE} --che-operator-cr-patch-yaml=/tmp/che-cr-patch.yaml

# Get the token from utility in ${PROJECT_DIR}/.github/action_scripts/minikube/function-utilities.sh
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Replace value of `image` field with your catalog source image. Don't forget to s

5. Deploy Che using chectl:
```sh
$ chectl server:start --installer=olm --multiuser --platform=${platform} -n ${che-namespace} --catalog-source-yaml ${path_to_custom_catalog_source_yaml} --olm-channel=nightly --package-manifest-name=eclipse-che-preview-${platform}
$ chectl server:deploy --installer=olm --platform=${platform} -n ${che-namespace} --catalog-source-yaml ${path_to_custom_catalog_source_yaml} --olm-channel=nightly --package-manifest-name=eclipse-che-preview-${platform}
```

### OpenShift oAuth
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ oc login <LOCAL_MINISHIFT_CLUSTER_ADDRESS>
Install the previous version of Eclipse Che using the corresponding version of `chectl`:

```bash
chectl server:start --platform=minishift --installer=operator
chectl server:deploy --platform=minishift --installer=operator
```

Update Eclipse Che to the latest version. Validate that the correct version is installed and workspace can be created:
Expand Down