-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tas): Remove generic deployment watcher (#400)
* fix(tas): Remove generic deployment watcher * Remove ServingRuntime dependency
- Loading branch information
Showing
4 changed files
with
55 additions
and
1,994 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,62 @@ | ||
name: Smoke test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push operator container image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
load: true | ||
tags: smoke/operator:pr-${{ github.event.pull_request.number || env.PR_NUMBER }} | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/kind-action@v1 | ||
with: | ||
node_image: kindest/node:v1.24.17 | ||
cluster_name: kind | ||
|
||
- name: Load the operator image into Kind | ||
run: | | ||
kind load docker-image smoke/operator:pr-${{ github.event.pull_request.number || env.PR_NUMBER }} | ||
- name: Install kustomize | ||
run: | | ||
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash | ||
sudo mv kustomize /usr/local/bin/ | ||
- name: Apply CRDs | ||
run: | | ||
kubectl apply -f tests/crds/monitoring.coreos.com_servicemonitors.yaml | ||
kubectl apply -f tests/crds/route_crd.yaml | ||
kubectl apply -f tests/crds/serving.kserve.io_inferenceservices.yaml | ||
kubectl apply -f tests/crds/serving.kserve.io_servingruntimes.yaml | ||
kustomize build config/crd | kubectl apply -f - | ||
- name: Update params.env file | ||
run: | | ||
sed -i 's|trustyaiOperatorImage=quay.io/trustyai/trustyai-service-operator:latest|trustyaiOperatorImage=smoke/operator:pr-${{ github.event.pull_request.number || env.PR_NUMBER }}|' config/base/params.env | ||
- name: Deploy the operator with kustomize | ||
run: | | ||
kubectl create namespace system | ||
kustomize build config/base | kubectl apply -n system -f - | ||
- name: Run smoke tests | ||
run: ./tests/smoke/test_smoke.sh | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push operator container image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
load: true | ||
tags: smoke/operator:pr-${{ github.event.pull_request.number || env.PR_NUMBER }} | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/kind-action@v1 | ||
with: | ||
node_image: kindest/node:v1.24.17 | ||
cluster_name: kind | ||
|
||
- name: Load the operator image into Kind | ||
run: | | ||
kind load docker-image smoke/operator:pr-${{ github.event.pull_request.number || env.PR_NUMBER }} | ||
- name: Install kustomize | ||
run: | | ||
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash | ||
sudo mv kustomize /usr/local/bin/ | ||
- name: Apply CRDs | ||
run: | | ||
kubectl apply -f tests/crds/monitoring.coreos.com_servicemonitors.yaml | ||
kubectl apply -f tests/crds/route_crd.yaml | ||
kubectl apply -f tests/crds/serving.kserve.io_inferenceservices.yaml | ||
kustomize build config/crd | kubectl apply -f - | ||
- name: Update params.env file | ||
run: | | ||
sed -i 's|trustyaiOperatorImage=quay.io/trustyai/trustyai-service-operator:latest|trustyaiOperatorImage=smoke/operator:pr-${{ github.event.pull_request.number || env.PR_NUMBER }}|' config/base/params.env | ||
- name: Deploy the operator with kustomize | ||
run: | | ||
kubectl create namespace system | ||
kustomize build config/base | kubectl apply -n system -f - | ||
- name: Run smoke tests | ||
run: ./tests/smoke/test_smoke.sh | ||
|
||
env: | ||
PR_NUMBER: "default-pr-number" | ||
KUBECONFIG: "${HOME}/.kube/config" | ||
PR_NUMBER: "default-pr-number" | ||
KUBECONFIG: "${HOME}/.kube/config" |
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
Oops, something went wrong.