K8SPSMDB-1213 Add arm64 support for the e2e tests#1735
Open
K8SPSMDB-1213 Add arm64 support for the e2e tests#1735
Conversation
Fix tests for 1.18.0 release
…n up apply_cluster logic
… also need to rename compare files in addition to update of run file content
…godb-operator into K8SPSMDB-1213
…ble to satisfy reviewdog
… satisfy reviewdog
eleo007
reviewed
Dec 19, 2024
| | yq eval '(.spec | select(has("initImage"))).initImage = "'"$IMAGE"'"' \ | ||
| | yq eval '(.spec | select(has("backup"))).backup.image = "'"$IMAGE_BACKUP"'"' \ | ||
| | yq eval '.spec.upgradeOptions.apply="Never"' | ||
| local temp_cr="$(mktemp)" |
Contributor
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| local temp_cr="$(mktemp)" | |
| local temp_cr="$(mktemp)" |
| (.spec | select(has("pmm"))).pmm.image = "'"$IMAGE_PMM_CLIENT"'" | | ||
| (.spec | select(has("initImage"))).initImage = "'"$IMAGE"'" | | ||
| (.spec | select(has("backup"))).backup.image = "'"$IMAGE_BACKUP"'" | | ||
| .spec.upgradeOptions.apply="Never"' "$1" > $temp_cr |
Contributor
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| .spec.upgradeOptions.apply="Never"' "$1" > $temp_cr | |
| .spec.upgradeOptions.apply="Never"' "$1" >$temp_cr |
| .spec.upgradeOptions.apply="Never"' "$1" > $temp_cr | ||
|
|
||
| if [[ $ARCH == "arm64" ]]; then | ||
| yq eval '.spec.replsets[].tolerations += '"$TOLERATIONS_ARM64"' | |
Contributor
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| yq eval '.spec.replsets[].tolerations += '"$TOLERATIONS_ARM64"' | | |
| yq eval '.spec.replsets[].tolerations += '"$TOLERATIONS_ARM64"' | |
|
|
||
| apply_client() { | ||
| if [[ $ARCH == "arm64" ]]; then | ||
| yq eval '.spec.template.spec.tolerations += '"$TOLERATIONS_ARM64"'' "$1" | kubectl_bin apply -f - |
Contributor
There was a problem hiding this comment.
[shfmt] reported by reviewdog 🐶
Suggested change
| yq eval '.spec.template.spec.tolerations += '"$TOLERATIONS_ARM64"'' "$1" | kubectl_bin apply -f - | |
| yq eval '.spec.template.spec.tolerations += '"$TOLERATIONS_ARM64"'' "$1" | kubectl_bin apply -f - |
Collaborator
commit: 753d0df |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
CHANGE DESCRIPTION
Problem:
We want to support the arm64 architecture for our operator releases. We need to re-work some of the test cases and or the supporting functions in the e2e test cases.
Solution:
The solution is to apply tolerations blocks in the yaml resource definitions on the fly
where needed, e.g.:
Also, replace old docker images which supported only amd64:
amazon/aws-cliinstead ofperconalab/awsclialpine/curlinstead ofappropriate/curlwe're now using -multi images for:
percona/percona-server-mongodb:7.0.14-8-multi
percona/percona-backup-mongodb:2.7.0-multi
and also the
percona/percona-server-mongodb:4.4-multi
image in cases when we use it for the mongo client.
but in the future hopefully the -multi suffix will disappear.
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability