name: test-restarts steps: - name: nginx-deployment watch: - name: nginx-pods group: '' version: v1 kind: Pod apply: - path: nginx-deployment.yaml wait: - target: nginx-pods timeout: 60 condition: and: - size: 3 - all: status: conditions: - type: Ready status: "True" - name: patch deployment bucket: - name: nginx-pods operations: - delete watch: - name: nginx-pods-patched group: '' version: v1 kind: Pod apply: - path: nginx-deployment-patch.yaml wait: - target: nginx-pods timeout: 60 condition: size: 0 - target: nginx-pods-patched timeout: 60 condition: and: - size: 3 - all: status: conditions: - type: Ready status: "True"