Skip to content

Commit 69447bd

Browse files
ci: Use shared testing component installation scripts in E2E tests (#164)
* use component installation scripts in E2E tests Signed-off-by: Harshvir Potpose <[email protected]> * fix path and rm repated code Signed-off-by: Harshvir Potpose <[email protected]> --------- Signed-off-by: Harshvir Potpose <[email protected]>
1 parent a611579 commit 69447bd

File tree

1 file changed

+5
-60
lines changed

1 file changed

+5
-60
lines changed

.github/workflows/end_to_end_integration_test.yaml

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,8 @@ jobs:
5353
- name: Create Kubeflow Namespace
5454
run: kubectl create namespace kubeflow
5555

56-
- name: Build KFAM Image
57-
run: |
58-
cd components/access-management
59-
make docker-build-multi-arch IMG="${ACCESS_MANAGEMENT_IMG}" TAG="${TAG}"
60-
kind load docker-image "${ACCESS_MANAGEMENT_IMG}:${TAG}"
61-
cd ../..
62-
6356
- name: Deploy Profile Controller with KFAM
64-
run: |
65-
cd components/profile-controller
66-
make docker-build-multi-arch IMG="${PROFILE_CONTROLLER_IMG}" TAG="${TAG}"
67-
kind load docker-image "${PROFILE_CONTROLLER_IMG}:${TAG}"
68-
cd config
69-
kustomize build overlays/kubeflow \
70-
| sed "s|ghcr.io/kubeflow/dashboard/profile-controller:[a-zA-Z0-9_.-]*|${PROFILE_CONTROLLER_IMG}:${TAG}|g" \
71-
| sed "s|ghcr.io/kubeflow/dashboard/access-management:[a-zA-Z0-9_.-]*|${ACCESS_MANAGEMENT_IMG}:${TAG}|g" \
72-
| kubectl apply -f -
73-
kubectl wait --for=condition=Ready pods -n kubeflow -l kustomize.component=profiles --timeout=300s
74-
kubectl wait --for=condition=Available deployment -n kubeflow profiles-deployment --timeout=300s
57+
run: ./testing/shared/install_profile_controller.sh
7558

7659
- name: Wait for Profile CRD to be Available
7760
run: |
@@ -87,45 +70,16 @@ jobs:
8770
done
8871
kubectl wait --for condition=established --timeout=60s crd/profiles.kubeflow.org
8972
90-
- name: Wait for KFAM to be Ready
91-
run: |
92-
# Verify KFAM container is running in the profiles deployment
93-
POD_NAME=$(kubectl get pods -n kubeflow -l kustomize.component=profiles -o jsonpath="{.items[0].metadata.name}")
94-
if [ -n "$POD_NAME" ]; then
95-
kubectl wait --for=condition=Ready pod/$POD_NAME -n kubeflow --timeout=300s
96-
kubectl describe pod/$POD_NAME -n kubeflow
97-
echo "KFAM/access-management container is part of profiles deployment"
98-
fi
99-
100-
- name: Deploy Admission Webhook Component
101-
run: |
102-
./testing/shared/deploy_component.sh \
103-
"components/poddefaults-webhooks" \
104-
"${ADMISSION_WEBHOOK_IMG}" \
105-
"${TAG}" \
106-
"manifests" \
107-
"overlays/cert-manager"
108-
109-
- name: Wait for Admission Webhook to be Ready
110-
run: |
111-
kubectl wait --for=condition=Available deployment -n kubeflow poddefaults-webhook-deployment --timeout=300s
73+
- name: Deploy Poddefault Webhook Component
74+
run: ./testing/shared/install_poddefaults_webhook.sh
11275

11376
- name: Deploy CentralDashboard Angular Component
11477
run: |
11578
# Set required environment variables for domain name substitution
11679
export CD_NAMESPACE=kubeflow
11780
export CD_CLUSTER_DOMAIN=cluster.local
11881
119-
./testing/shared/deploy_component.sh \
120-
"components/centraldashboard-angular" \
121-
"${CENTRALDASHBOARD_ANGULAR_IMG}" \
122-
"${TAG}" \
123-
"manifests" \
124-
"overlays/kserve"
125-
126-
- name: Wait for CentralDashboard Angular to be Ready
127-
run: |
128-
kubectl wait --for=condition=Available deployment -n kubeflow dashboard-angular --timeout=300s
82+
./testing/shared/install_centraldashboard_angular.sh
12983
13084
- name: Deploy CentralDashboard Component
13185
run: |
@@ -134,16 +88,7 @@ jobs:
13488
export CD_NAMESPACE_PLACEHOLDER=kubeflow
13589
export CD_CLUSTER_DOMAIN_PLACEHOLDER=cluster.local
13690
137-
./testing/shared/deploy_component.sh \
138-
"components/centraldashboard" \
139-
"${CENTRALDASHBOARD_IMG}" \
140-
"${TAG}" \
141-
"manifests" \
142-
"overlays/kserve"
143-
144-
- name: Wait for CentralDashboard to be Ready
145-
run: |
146-
kubectl wait --for=condition=Available deployment -n kubeflow dashboard --timeout=300s
91+
./testing/shared/install_centraldashboard.sh
14792
14893
- name: Create Test Profiles
14994
run: |

0 commit comments

Comments
 (0)