kubernetes/test/cmd
Kubernetes Submit Queue 501e3f7e7d
Merge pull request #67707 from apelisse/fix-diff-404
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

diff: Fix crash when remote object doesn't exist

Since we're saving nil in an interface rather than the implementation,
we can't compare to nil to check if the remote object exists or
not. Change the struct to save in the implementation.



**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-08-23 15:32:14 -07:00
..
apply.sh kubectl: recreating resources for immutable fields when force is applied 2018-08-09 22:59:02 +08:00
apps.sh Fix NameFromCommandArgs when passing command after -- 2018-08-22 15:23:13 +02:00
authorization.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
batch.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
BUILD delete copied comment 2018-07-06 16:26:56 -07:00
certificate.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
core.sh Make kubectl create secret tls work with process substitution 2018-08-22 10:35:07 -04:00
crd.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
create.sh Full blown kubectl create job 2018-08-01 15:04:04 +02:00
diff.sh diff: Fix crash when remote object doesn't exist 2018-08-22 06:36:29 -07:00
discovery.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
generic-resources.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
get.sh prevent "No resources found" output on forbidden error 2018-08-15 13:54:23 -04:00
initializers.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
kubeconfig.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
legacy-script.sh Full blown kubectl create job 2018-08-01 15:04:04 +02:00
node-management.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
old-print.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
OWNERS move test-cmd guts to separate sig-cli maintained directory 2018-07-05 11:38:26 -04:00
plugins.sh add updated plugin mechanism 2018-08-15 15:06:29 -04:00
proxy.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
rbac.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
request-timeout.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
run.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
save-config.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
storage.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00
template-output.sh wire PrintFlags through rollout commands 2018-07-06 17:32:42 -04:00
version.sh straight split of test-cmd 2018-07-05 11:38:26 -04:00