Skip to content

Commit 6e085c3

Browse files
committed
test: this is test PR
This is PR is just for testing purpose. Signed-off-by: subhamkrai <[email protected]>
1 parent 9ad087d commit 6e085c3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/script/github_action_helper.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ deploy_rook_ceph_with_flex() {
1616
kubectl create -f https://raw.githubusercontent.com/rook/rook/release-1.7/cluster/examples/kubernetes/ceph/common.yaml
1717
kubectl create -f https://raw.githubusercontent.com/rook/rook/release-1.7/cluster/examples/kubernetes/ceph/crds.yaml
1818
wget https://raw.githubusercontent.com/rook/rook/release-1.7/cluster/examples/kubernetes/ceph/operator.yaml
19+
sed -i 's|image: rook/ceph:v1.7.8|image: subham03/rook-ceph:pv-binary1|g' operator.yaml
1920
sed -i 's|ROOK_ENABLE_FLEX_DRIVER: "false"|ROOK_ENABLE_FLEX_DRIVER: "true"|g' operator.yaml
2021
sed -i 's|# - name: FLEXVOLUME_DIR_PATH|- name: FLEXVOLUME_DIR_PATH|g' operator.yaml
2122
sed -i 's|# value: "<PathToFlexVolumes>"| value: "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/"|g' operator.yaml
@@ -53,10 +54,10 @@ create_sample_pod_and_write_some_data_and_delete(){
5354
}
5455

5556
test_flex_migration_for_all_pvc(){
56-
go build -o pv-migrator
57+
#go build -o pv-migrator
5758
MIGRATION_POD=$(kubectl -n rook-ceph get pod -l app=rook-ceph-migrator -o jsonpath='{.items[*].metadata.name}')
58-
kubectl -n rook-ceph cp pv-migrator "$MIGRATION_POD":/root/
59-
kubectl -n rook-ceph exec -it "$MIGRATION_POD" -- sh -c "cd root/ && ./pv-migrator --source-sc=rook-ceph-block --destination-sc=csi-rook-ceph-block"
59+
#kubectl -n rook-ceph cp pv-migrator "$MIGRATION_POD":/root/
60+
kubectl -n rook-ceph exec -it "$MIGRATION_POD" -- sh -c "pv-migrator --source-sc=rook-ceph-block --destination-sc=csi-rook-ceph-block"
6061
exit_code_of_last_command=$?
6162
if [ $exit_code_of_last_command -ne 0 ]; then
6263
echo "Exit code migration command is non-zero $exit_code_of_last_command. Migration failed"
@@ -68,10 +69,10 @@ test_flex_migration_for_all_pvc(){
6869
}
6970

7071
test_flex_migration_for_single_pvc(){
71-
go build -o pv-migrator
72+
#go build -o pv-migrator
7273
MIGRATION_POD=$(kubectl -n rook-ceph get pod -l app=rook-ceph-migrator -o jsonpath='{.items[*].metadata.name}')
73-
kubectl -n rook-ceph cp pv-migrator "$MIGRATION_POD":/root/
74-
kubectl -n rook-ceph exec -it "$MIGRATION_POD" -- sh -c "cd root/ && ./pv-migrator --pvc=rbd-pvc --pvc-ns=default --destination-sc=csi-rook-ceph-block"
74+
#kubectl -n rook-ceph cp pv-migrator "$MIGRATION_POD":/root/
75+
kubectl -n rook-ceph exec -it "$MIGRATION_POD" -- sh -c "pv-migrator --pvc=rbd-pvc --pvc-ns=default --destination-sc=csi-rook-ceph-block"
7576
kubectl create -f https://raw.githubusercontent.com/rook/rook/release-1.7/cluster/examples/kubernetes/ceph/csi/rbd/pod.yaml
7677
wait_for_sample_pod_to_be_ready_state
7778
verify_file_data_and_file_data

0 commit comments

Comments
 (0)