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

Use --version flag to deploy and update Eclipse Che #683

Merged
merged 1 commit into from
Feb 19, 2021
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
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