Merge pull request #89539 from seans3/kubectl-apply-fix
Fixes problem where kubectl apply stops after first error
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