mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-18 00:40:32 +00:00
Automatic merge from submit-queue (batch tested with PRs 48481, 48256) Protect against nil panic in apply **What this PR does / why we need it**: `kubectl apply` has a potential panic (actually verified in OpenShift in https://github.com/openshift/origin/issues/15017) where a `patcher` calls the `runDelete` function with a nil `resource.RESTClient`, but under some conditions the client is required by that function. **Release note**: ```release-note NONE ``` @pwittrock @kubernetes/sig-cli-bugs