Skip to content

Commit

Permalink
User --version flag to deploy and update Eclipse Che (#683)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha authored Feb 19, 2021
1 parent b4eff0a commit 162cda4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions .github/bin/minishift/test-stable-operator-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,23 @@ source "${OPERATOR_REPO}"/.github/bin/common.sh
# Stop execution on any error
trap "catchFinish" EXIT SIGINT

prepareTemplates() {
disableOpenShiftOAuth ${PREVIOUS_OPERATOR_TEMPLATE}
disableOpenShiftOAuth ${LAST_OPERATOR_TEMPLATE}
preparePatchYaml() {
cat >${OPERATOR_REPO}/tmp/patch.yaml<<EOF
spec:
auth:
updateAdminPassword: false
openShiftoAuth: false
EOF
}

runTest() {
deployEclipseChe "operator" "minishift" "quay.io/eclipse/che-operator:${PREVIOUS_PACKAGE_VERSION}" ${PREVIOUS_OPERATOR_TEMPLATE}
chectl server:deploy --platform minishift --installer operator \
--version ${PREVIOUS_PACKAGE_VERSION} \
--che-operator-cr-patch-yaml ${OPERATOR_REPO}/tmp/patch.yaml

createWorkspace

updateEclipseChe "quay.io/eclipse/che-operator:${LAST_PACKAGE_VERSION}" ${LAST_OPERATOR_TEMPLATE}
chectl server:update --version ${LAST_PACKAGE_VERSION} -y
waitEclipseCheDeployed ${LAST_PACKAGE_VERSION}

startExistedWorkspace
Expand All @@ -39,5 +46,5 @@ runTest() {
initDefaults
installYq
initStableTemplates "openshift" "stable"
prepareTemplates
preparePatchYaml
runTest
2 changes: 1 addition & 1 deletion .github/workflows/minishift-stable-operator-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
export MINISHIFT_GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}
minishift start --memory=5500 --vm-driver=virtualbox
- name: Install chectl
run: bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=stable
run: bash <(curl -sL https://www.eclipse.org/che/chectl/) --channel=next
- name: Install jq
run: sudo pip install yq
- name: Replace Minishift default certificates
Expand Down

0 comments on commit 162cda4

Please sign in to comment.