Skip to content

Commit f789e08

Browse files
authored
add a single-node customer migration spec (#4915)
1 parent 995cfc0 commit f789e08

File tree

1 file changed

+111
-1
lines changed

1 file changed

+111
-1
lines changed

testgrid/specs/customer-migration-specs.yaml

+111-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@
699699
# source helper functions
700700
source /opt/kurl-testgrid/testhelpers.sh
701701
702-
# deploy sample app
702+
# deploy sample app
703703
install_and_customize_kurl_integration_test_application
704704
postUpgradeScript: |
705705
# source helper functions
@@ -713,3 +713,113 @@
713713
echo "Kubernetes was not upgraded to 1.26.x"
714714
exit 1
715715
fi
716+
717+
- name: "Cust sha1:450f2b6c9eb9fcb88f047d735ca217d4a0c21d37: docker -> containerd, weave -> flannel, longhorn -> openebs"
718+
flags: "yes"
719+
cpu: 8
720+
installerSpec:
721+
kubernetes:
722+
version: "1.23.x"
723+
weave:
724+
version: "2.6.x"
725+
contour:
726+
version: "1.20.x"
727+
docker:
728+
version: "20.10.x"
729+
prometheus:
730+
version: "0.60.x"
731+
registry:
732+
version: "2.7.x"
733+
velero:
734+
version: "1.7.x"
735+
kotsadm:
736+
version: "1.80.x"
737+
ekco:
738+
version: "0.27.x"
739+
minio:
740+
version: "2020-01-25T02-50-51Z"
741+
longhorn:
742+
version: "1.2.x"
743+
metricsServer:
744+
version: "0.4.x"
745+
certManager:
746+
version: "1.9.x"
747+
upgradeSpec:
748+
kubernetes:
749+
version: "1.27.x"
750+
flannel:
751+
version: "0.22.x"
752+
openebs:
753+
version: "3.9.x"
754+
isLocalPVEnabled: true
755+
localPVStorageClassName: "local"
756+
contour:
757+
version: "1.25.x"
758+
containerd:
759+
version: "1.6.x"
760+
prometheus:
761+
version: "0.68.x"
762+
registry:
763+
version: "2.8.x"
764+
velero:
765+
version: "1.11.x"
766+
kotsadm:
767+
version: "1.103.x"
768+
ekco:
769+
version: "latest"
770+
minio:
771+
version: "2023-09-30T07-02-29Z"
772+
metricsServer:
773+
version: "0.6.x"
774+
certManager:
775+
version: "1.9.x"
776+
unsupportedOSIDs:
777+
- rocky-92
778+
- ol-8x
779+
postInstallScript: |
780+
# source helper functions
781+
source /opt/kurl-testgrid/testhelpers.sh
782+
783+
# if on ubuntu or amazon linux, the test application doesn't deploy:
784+
echo $OS_NAME
785+
if [[ "$OS_NAME" == "Ubuntu" || "$OS_NAME" == "Amazon Linux" ]]; then
786+
# mount a localpv volume
787+
create_deployment_with_mounted_volume "migration-test" "default" "/data" "registry:2.7.1"
788+
789+
# write to the volume
790+
create_random_file_and_upload_to_deployment "migration-test" "default" "./test.data" "/data/test.data"
791+
792+
# test object store
793+
minio_object_store_info
794+
validate_read_write_object_store rwtest testfile.txt
795+
else
796+
# deploy sample app
797+
install_and_customize_kurl_integration_test_application
798+
fi
799+
postUpgradeScript: |
800+
# source helper functions
801+
source /opt/kurl-testgrid/testhelpers.sh
802+
803+
# if on ubuntu or amazon linux, the test application wasn't deploy:
804+
if [[ "$OS_NAME" == "Ubuntu" || "$OS_NAME" == "Amazon Linux" ]]; then
805+
# verify data was migrated
806+
download_file_from_deployment_and_compare "migration-test" "default" "./test.data" "/data/test.data"
807+
808+
# ensure object store is still working
809+
minio_object_store_info
810+
validate_testfile rwtest testfile.txt
811+
812+
# install the app now
813+
install_and_customize_kurl_integration_test_application
814+
else
815+
# ensure we can redeploy sample app
816+
check_and_customize_kurl_integration_test_application
817+
fi
818+
819+
# ensure kubernetes was upgraded
820+
if [[ ! "$(kubectl get nodes --sort-by='{.status.nodeInfo.kubeletVersion}' -o=jsonpath='{.items[0].status.nodeInfo.kubeletVersion}' | sed 's/^v*//')" =~ "1.27" ]]; then
821+
echo "Kubernetes was not upgraded to 1.27.x"
822+
exit 1
823+
fi
824+
825+

0 commit comments

Comments
 (0)