mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +00:00
Adds integration test for apply failures when applying multiple resources
This commit is contained in:
19
hack/testdata/multi-resource.yaml
vendored
Normal file
19
hack/testdata/multi-resource.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# Tests that initial failures to not block subsequent applies.
|
||||
# Pod must be before namespace, so it initially fails. Second
|
||||
# apply of pod should succeed, since namespace finally exists.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: test-pod
|
||||
namespace: multi-resource-ns
|
||||
labels:
|
||||
name: test-pod-label
|
||||
spec:
|
||||
containers:
|
||||
- name: kubernetes-pause
|
||||
image: k8s.gcr.io/pause:2.0
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: multi-resource-ns
|
Reference in New Issue
Block a user