Skip to content

Commit 49b097a

Browse files
committed
Fixed certificate error
Signed-off-by: kunal-511 <[email protected]>
1 parent 8d380cf commit 49b097a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

testing/gh-actions/deploy_component.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,17 @@ export PR_IMAGE_ESCAPED=$(echo "$PR_IMAGE" | sed 's|\.|\\.|g')
4141

4242
for overlay_path in "${OVERLAY}" "overlays/kserve" "overlays/cert-manager"; do
4343
if [ -d "$overlay_path" ]; then
44-
kustomize build "$overlay_path" \
45-
| sed "s|${CURRENT_IMAGE_ESCAPED}:[a-zA-Z0-9_.-]*|${PR_IMAGE_ESCAPED}|g" \
46-
| kubectl apply -f -
44+
if [ "$overlay_path" = "overlays/cert-manager" ]; then
45+
kustomize build "$overlay_path" \
46+
| sed "s|${CURRENT_IMAGE_ESCAPED}:[a-zA-Z0-9_.-]*|${PR_IMAGE_ESCAPED}|g" \
47+
| sed 's/$(podDefaultsServiceName)/admission-webhook-service/g' \
48+
| sed 's/$(podDefaultsNamespace)/kubeflow/g' \
49+
| kubectl apply -f -
50+
else
51+
kustomize build "$overlay_path" \
52+
| sed "s|${CURRENT_IMAGE_ESCAPED}:[a-zA-Z0-9_.-]*|${PR_IMAGE_ESCAPED}|g" \
53+
| kubectl apply -f -
54+
fi
4755
exit 0
4856
fi
4957
done

0 commit comments

Comments
 (0)