-
Notifications
You must be signed in to change notification settings - Fork 147
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
K8SPSMDB-1213 Add arm64 support for the e2e tests #1735
base: main
Are you sure you want to change the base?
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
74b47dd
to
b25251c
Compare
|
…godb-operator into K8SPSMDB-1213
…ble to satisfy reviewdog
… satisfy reviewdog
| 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)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
.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"' | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
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 - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
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 - |
commit: 268b731 |
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-cli
instead ofperconalab/awscli
alpine/curl
instead ofappropriate/curl
we'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