6262 | sed "s|ghcr.io/kubeflow/dashboard/profile-controller:[a-zA-Z0-9_.-]*|${PROFILE_IMG}:${TAG}|g" \
6363 | sed "s|ghcr.io/kubeflow/dashboard/access-management:[a-zA-Z0-9_.-]*|${ACCESS_MANAGEMENT_IMG}:${TAG}|g" \
6464 | kubectl apply -f -
65- kubectl wait --for=condition=Ready pods -n kubeflow -l kustomize.component =profiles --timeout=300s
65+ kubectl wait --for=condition=Ready pods -n kubeflow -l app =profiles --timeout=300s
6666 kubectl wait --for=condition=Available deployment -n kubeflow profiles-deployment --timeout=300s
6767
6868 - name : Wait for Profile CRD to be Available
8484 run : |
8585 kubectl get service profiles-kfam -n kubeflow || {
8686 echo "KFAM service not found, KFAM might be deployed as part of profiles deployment"
87- kubectl wait --for=condition=Ready pods -n kubeflow -l kustomize.component =profiles --timeout=300s
87+ kubectl wait --for=condition=Ready pods -n kubeflow -l app =profiles --timeout=300s
8888 }
8989
9090 - name : Test Profile CRD Installation
@@ -115,9 +115,9 @@ jobs:
115115 - name : Test KFAM Service Health
116116 run : |
117117 kubectl get services -n kubeflow | grep kfam
118- kubectl get services -n kubeflow -l kustomize.component =profiles
118+ kubectl get services -n kubeflow -l app =profiles
119119
120- POD_NAME=$(kubectl get pods -n kubeflow -l kustomize.component =profiles -o jsonpath="{.items[0].metadata.name}")
120+ POD_NAME=$(kubectl get pods -n kubeflow -l app =profiles -o jsonpath="{.items[0].metadata.name}")
121121 if [ -z "$POD_NAME" ]; then exit 1; fi
122122
123123 kubectl port-forward -n kubeflow pod/$POD_NAME 8081:8081 &
@@ -134,7 +134,7 @@ jobs:
134134
135135 - name : Test KFAM API with User Context
136136 run : |
137- POD_NAME=$(kubectl get pods -n kubeflow -l kustomize.component =profiles -o jsonpath="{.items[0].metadata.name}")
137+ POD_NAME=$(kubectl get pods -n kubeflow -l app =profiles -o jsonpath="{.items[0].metadata.name}")
138138 if [ -z "$POD_NAME" ]; then exit 1; fi
139139
140140 kubectl port-forward -n kubeflow pod/$POD_NAME 8081:8081 &
@@ -160,16 +160,16 @@ jobs:
160160
161161 - name : Check KFAM Logs
162162 run : |
163- kubectl logs -n kubeflow -l kustomize.component =profiles -c access-management --tail=50 || kubectl logs -n kubeflow -l app=kfam --tail=50
163+ kubectl logs -n kubeflow -l app =profiles -c access-management --tail=50 || kubectl logs -n kubeflow -l app=kfam --tail=50
164164
165165 - name : Check Profile Controller Logs
166166 run : |
167- kubectl logs -n kubeflow -l kustomize.component =profiles --tail=50
167+ kubectl logs -n kubeflow -l app =profiles --tail=50
168168
169169 - name : Check for Errors in Logs
170170 run : |
171- kubectl logs -n kubeflow -l kustomize.component =profiles -c access-management --tail=100 | grep -i error || echo "No errors found in KFAM logs"
172- kubectl logs -n kubeflow -l kustomize.component =profiles --tail=100 | grep -i error || echo "No errors found in Profile Controller logs"
171+ kubectl logs -n kubeflow -l app =profiles -c access-management --tail=100 | grep -i error || echo "No errors found in KFAM logs"
172+ kubectl logs -n kubeflow -l app =profiles --tail=100 | grep -i error || echo "No errors found in Profile Controller logs"
173173
174174 - name : Cleanup Test Resources
175175 run : |
0 commit comments