Merge pull request #89539 from seans3/kubectl-apply-fix

Fixes problem where kubectl apply stops after first error
This commit is contained in:
Kubernetes Prow Robot
2020-03-27 17:11:53 -07:00
committed by GitHub
4 changed files with 183 additions and 132 deletions

19
hack/testdata/multi-resource.yaml vendored Normal file
View 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