Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kmrmt committed Dec 17, 2024
1 parent 983a963 commit fe9247f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,20 +316,20 @@ jobs:
with:
require_k3d: "false"
require_kind: "true"
- name: Deploy Vald
id: deploy_vald
uses: ./.github/actions/e2e-deploy-vald
with:
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-readreplica.yaml
wait_for_selector: app=vald-agent
- name: Deploy Vald Read Replica
id: deploy_vald_readreplica
uses: ./.github/actions/e2e-deploy-vald-readreplica
with:
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-readreplica.yaml
wait_for_selector: app=vald-lb-gateway
- name: Deploy Vald
id: deploy_vald
uses: ./.github/actions/e2e-deploy-vald
with:
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-readreplica.yaml
wait_for_selector: app=vald-agent
- name: Run E2E CRUD with read replica rotation
run: |
make hack/benchmark/assets/dataset/${{ env.DATASET }}
Expand Down
8 changes: 4 additions & 4 deletions Makefile.d/e2e.mk
Original file line number Diff line number Diff line change
Expand Up @@ -151,22 +151,22 @@ e2e/actions/run/readreplica: \
kubectl wait -n kube-system --for=condition=Ready pod -l app.kubernetes.io/name=metrics-server --timeout=$(E2E_WAIT_FOR_START_TIMEOUT)
kubectl wait -n kube-system --for=condition=ContainersReady pod -l app.kubernetes.io/name=metrics-server --timeout=$(E2E_WAIT_FOR_START_TIMEOUT)
sleep 3
$(MAKE) k8s/vald-readreplica/deploy \
HELM_VALUES=$(ROOTDIR)/.github/helm/values/values-readreplica.yaml
sleep 3
$(MAKE) k8s/vald/deploy \
HELM_VALUES=$(ROOTDIR)/.github/helm/values/values-readreplica.yaml
sleep 20
kubectl wait --for=condition=Ready pod -l "app=$(AGENT_IMAGE)" --timeout=$(E2E_WAIT_FOR_START_TIMEOUT)
kubectl wait --for=condition=ContainersReady pod -l "app=$(AGENT_IMAGE)" --timeout=$(E2E_WAIT_FOR_START_TIMEOUT)
$(MAKE) k8s/vald-readreplica/deploy \
HELM_VALUES=$(ROOTDIR)/.github/helm/values/values-readreplica.yaml
sleep 3
kubectl wait --for=condition=Ready pod -l "app=$(LB_GATEWAY_IMAGE)" --timeout=$(E2E_WAIT_FOR_START_TIMEOUT)
kubectl wait --for=condition=ContainersReady pod -l "app=$(LB_GATEWAY_IMAGE)" --timeout=$(E2E_WAIT_FOR_START_TIMEOUT)
kubectl get pods
pod_name=$$(kubectl get pods --selector="app=$(LB_GATEWAY_IMAGE)" | tail -1 | awk '{print $$1}'); \
echo $$pod_name; \
$(MAKE) E2E_TARGET_POD_NAME=$$pod_name e2e/readreplica
$(MAKE) k8s/vald/delete
$(MAKE) minikube/delete
$(MAKE) kind/vs/stop

.PHONY: e2e/actions/run/stream/crud/skip
## run GitHub Actions E2E test (Stream CRUD with SkipExistsCheck = true)
Expand Down
8 changes: 2 additions & 6 deletions Makefile.d/k8s.mk
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,9 @@ k8s/vald-readreplica/deploy:
charts/vald-readreplica
kubectl apply -f $(TEMP_DIR)/vald-readreplica/templates
sleep 5
kubectl get pods

kubectl delete pod --selector=app=vald-lb-gateway
sleep 5

kubectl get pods
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=vald-readreplica --timeout=1200s
# kubectl get pods
# kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=vald-readreplica --timeout=600s

.PHONY: k8s/vald-readreplica/delete
## delete vald-helm-operator from k8s
Expand Down

0 comments on commit fe9247f

Please sign in to comment.