mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-28 11:06:13 -04:00
ci: ensure autoscaling test actuallly waits for all Pods to be ready (#3514)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
5b1e3627c9
commit
6bad8b9839
25
.github/actions/e2e_autoscaling/action.yml
vendored
25
.github/actions/e2e_autoscaling/action.yml
vendored
@ -82,7 +82,30 @@ runs:
|
|||||||
KUBECONFIG: ${{ inputs.kubeconfig }}
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
||||||
run: |
|
run: |
|
||||||
worker_count=${{ steps.worker_count.outputs.worker_count }}
|
worker_count=${{ steps.worker_count.outputs.worker_count }}
|
||||||
kubectl create -n default deployment nginx --image=nginx --replicas $(( 110 * (worker_count + 1) + 55 ))
|
|
||||||
|
cat <<EOF | kubectl apply -f -
|
||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
name: nginx
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
replicas: $(( 110 * (worker_count + 1) + 55 ))
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0 # Ensure "kubectl wait" actually waits for all pods to be ready
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nginx
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Wait for autoscaling and check result
|
- name: Wait for autoscaling and check result
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user