-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Kustomize 5.2.1 in Kind GHA testing (#43)
* add Kustomize 5.2.1 in Kind GHA testing Signed-off-by: Matteo Mortari <[email protected]> * fix GHA syntax for dependent env Signed-off-by: Matteo Mortari <[email protected]> * use kustomize install binary instead of dedicated GHA step Signed-off-by: Matteo Mortari <[email protected]> * kustomize seems installed by default in GHA Signed-off-by: Matteo Mortari <[email protected]> --------- Signed-off-by: Matteo Mortari <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ on: | |
env: | ||
IMG_ORG: kubeflow | ||
IMG_REPO: model-registry | ||
IMG: ${{ env.IMG_ORG }}/${{ env.IMG_REPO }} | ||
PUSH_IMAGE: false | ||
BRANCH: ${{ github.base_ref }} | ||
jobs: | ||
|
@@ -37,18 +36,24 @@ jobs: | |
uses: helm/[email protected] | ||
- name: Load Local Registry Test Image | ||
env: | ||
IMG: "${{ env.IMG }}:${{ steps.tags.outputs.tag }}" | ||
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}" | ||
run: | | ||
kind load docker-image -n chart-testing ${IMG} | ||
- name: Create Test Registry | ||
env: | ||
IMG: "${{ env.IMG }}:${{ steps.tags.outputs.tag }}" | ||
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}" | ||
run: | | ||
echo "Download kustomize 5.2.1" | ||
mkdir $GITHUB_WORKSPACE/kustomize | ||
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s "5.2.1" "$GITHUB_WORKSPACE/kustomize" | ||
PATH=$GITHUB_WORKSPACE/kustomize:$PATH | ||
echo "Display Kustomize version" | ||
kustomize version | ||
echo "Deploying Model Registry using Manifests; branch ${BRANCH}" | ||
kubectl create namespace kubeflow | ||
cd manifests/kustomize/overlays/db | ||
kustomize edit set image kubeflow/model-registry:latest $IMG | ||
kubectl apply -k . | ||
kustomize build | kubectl apply -f - | ||
- name: Wait for Test Registry Deployment | ||
run: | | ||
kubectl wait --for=condition=available -n kubeflow deployment/model-registry-db --timeout=5m | ||
|