{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/46560","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/46560/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/46560/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/46560/events","html_url":"https://github.com/kubernetes/kubernetes/pull/46560","id":231777983,"number":46560,"title":"Add `kubectl apply diff-last-applied` subcommand","user":{"login":"shiywang","id":6284003,"avatar_url":"https://avatars0.githubusercontent.com/u/6284003?v=3","gravatar_id":"","url":"https://api.github.com/users/shiywang","html_url":"https://github.com/shiywang","followers_url":"https://api.github.com/users/shiywang/followers","following_url":"https://api.github.com/users/shiywang/following{/other_user}","gists_url":"https://api.github.com/users/shiywang/gists{/gist_id}","starred_url":"https://api.github.com/users/shiywang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiywang/subscriptions","organizations_url":"https://api.github.com/users/shiywang/orgs","repos_url":"https://api.github.com/users/shiywang/repos","events_url":"https://api.github.com/users/shiywang/events{/privacy}","received_events_url":"https://api.github.com/users/shiywang/received_events","type":"User","site_admin":false},"labels":[{"id":477397086,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":334598906,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/old-docs","name":"kind/old-docs","color":"c7def8","default":false},{"id":349530192,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note-label-needed","name":"release-note-label-needed","color":"db5a64","default":false},{"id":450823910,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/cli","name":"sig/cli","color":"d2b48c","default":false},{"id":253451057,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XL","name":"size/XL","color":"ee5500","default":false}],"state":"open","locked":false,"assignee":{"login":"apelisse","id":1929644,"avatar_url":"https://avatars3.githubusercontent.com/u/1929644?v=3","gravatar_id":"","url":"https://api.github.com/users/apelisse","html_url":"https://github.com/apelisse","followers_url":"https://api.github.com/users/apelisse/followers","following_url":"https://api.github.com/users/apelisse/following{/other_user}","gists_url":"https://api.github.com/users/apelisse/gists{/gist_id}","starred_url":"https://api.github.com/users/apelisse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apelisse/subscriptions","organizations_url":"https://api.github.com/users/apelisse/orgs","repos_url":"https://api.github.com/users/apelisse/repos","events_url":"https://api.github.com/users/apelisse/events{/privacy}","received_events_url":"https://api.github.com/users/apelisse/received_events","type":"User","site_admin":false},"assignees":[{"login":"apelisse","id":1929644,"avatar_url":"https://avatars3.githubusercontent.com/u/1929644?v=3","gravatar_id":"","url":"https://api.github.com/users/apelisse","html_url":"https://github.com/apelisse","followers_url":"https://api.github.com/users/apelisse/followers","following_url":"https://api.github.com/users/apelisse/following{/other_user}","gists_url":"https://api.github.com/users/apelisse/gists{/gist_id}","starred_url":"https://api.github.com/users/apelisse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apelisse/subscriptions","organizations_url":"https://api.github.com/users/apelisse/orgs","repos_url":"https://api.github.com/users/apelisse/repos","events_url":"https://api.github.com/users/apelisse/events{/privacy}","received_events_url":"https://api.github.com/users/apelisse/received_events","type":"User","site_admin":false},{"login":"mengqiy","id":2589105,"avatar_url":"https://avatars2.githubusercontent.com/u/2589105?v=3","gravatar_id":"","url":"https://api.github.com/users/mengqiy","html_url":"https://github.com/mengqiy","followers_url":"https://api.github.com/users/mengqiy/followers","following_url":"https://api.github.com/users/mengqiy/following{/other_user}","gists_url":"https://api.github.com/users/mengqiy/gists{/gist_id}","starred_url":"https://api.github.com/users/mengqiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengqiy/subscriptions","organizations_url":"https://api.github.com/users/mengqiy/orgs","repos_url":"https://api.github.com/users/mengqiy/repos","events_url":"https://api.github.com/users/mengqiy/events{/privacy}","received_events_url":"https://api.github.com/users/mengqiy/received_events","type":"User","site_admin":false},{"login":"pwittrock","id":7882754,"avatar_url":"https://avatars3.githubusercontent.com/u/7882754?v=3","gravatar_id":"","url":"https://api.github.com/users/pwittrock","html_url":"https://github.com/pwittrock","followers_url":"https://api.github.com/users/pwittrock/followers","following_url":"https://api.github.com/users/pwittrock/following{/other_user}","gists_url":"https://api.github.com/users/pwittrock/gists{/gist_id}","starred_url":"https://api.github.com/users/pwittrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwittrock/subscriptions","organizations_url":"https://api.github.com/users/pwittrock/orgs","repos_url":"https://api.github.com/users/pwittrock/repos","events_url":"https://api.github.com/users/pwittrock/events{/privacy}","received_events_url":"https://api.github.com/users/pwittrock/received_events","type":"User","site_admin":false},{"login":"alexandercampbell","id":9295657,"avatar_url":"https://avatars2.githubusercontent.com/u/9295657?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandercampbell","html_url":"https://github.com/alexandercampbell","followers_url":"https://api.github.com/users/alexandercampbell/followers","following_url":"https://api.github.com/users/alexandercampbell/following{/other_user}","gists_url":"https://api.github.com/users/alexandercampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandercampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandercampbell/subscriptions","organizations_url":"https://api.github.com/users/alexandercampbell/orgs","repos_url":"https://api.github.com/users/alexandercampbell/repos","events_url":"https://api.github.com/users/alexandercampbell/events{/privacy}","received_events_url":"https://api.github.com/users/alexandercampbell/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2017-05-27T05:45:30Z","updated_at":"2017-06-28T09:59:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/46560","html_url":"https://github.com/kubernetes/kubernetes/pull/46560","diff_url":"https://github.com/kubernetes/kubernetes/pull/46560.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/46560.patch"},"body":"https://github.com/kubernetes/community/pull/287\r\n`apply diff-last-applied` will invoke `git diff --no-index`, if there's no `git`, it will degenerate to use `diff` also you can use a customize diff tool by setting env : `KUBECTL_EXTERNAL_DIFF`\r\n```console\r\n[root@shiywang template]# ./kubectl apply diff-last-applied -f nginx.yaml \r\ndiff --git a/tmp/kubectl-diff-yd44r.yaml b/tmp/kubectl-diff-0wox0.yaml\r\nindex 46aa188..d44cab2 100644\r\n--- a/tmp/kubectl-diff-yd44r.yaml\r\n+++ b/tmp/kubectl-diff-0wox0.yaml\r\n@@ -8,7 +8,7 @@ spec:\r\n   template:\r\n     metadata:\r\n       labels:\r\n-        app: nginx123\r\n+        app: nginx\r\n     spec:\r\n       containers:\r\n       - image: gcr.io/google_containers/nginx-slim:0.8\r\n[root@shiywang template]# \r\n```\r\n\r\n@kubernetes/sig-cli-pr-reviews \r\n@mengqiy "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/311614559","html_url":"https://github.com/kubernetes/kubernetes/pull/46560#issuecomment-311614559","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/46560","id":311614559,"user":{"login":"k8s-ci-robot","id":20407524,"avatar_url":"https://avatars3.githubusercontent.com/u/20407524?v=3","gravatar_id":"","url":"https://api.github.com/users/k8s-ci-robot","html_url":"https://github.com/k8s-ci-robot","followers_url":"https://api.github.com/users/k8s-ci-robot/followers","following_url":"https://api.github.com/users/k8s-ci-robot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-ci-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-ci-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-ci-robot/subscriptions","organizations_url":"https://api.github.com/users/k8s-ci-robot/orgs","repos_url":"https://api.github.com/users/k8s-ci-robot/repos","events_url":"https://api.github.com/users/k8s-ci-robot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-ci-robot/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T09:59:56Z","updated_at":"2017-06-28T09:59:56Z","body":"@shiywang: The following tests **failed**, say `/retest` to rerun them all:\n\nTest name | Commit | Details | Rerun command\n--- | --- | --- | ---\npull-kubernetes-verify | 2da5fb82a33cd31d4b480a289887bed5f9add8cd | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-verify/37127/) | `/test pull-kubernetes-verify`\npull-kubernetes-bazel | ed63cca6b17237db018e56c5f4ee1b4399eaae43 | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-bazel/28036/) | `/test pull-kubernetes-bazel`\npull-kubernetes-federation-e2e-gce | ed63cca6b17237db018e56c5f4ee1b4399eaae43 | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-federation-e2e-gce/12307/) | `/test pull-kubernetes-federation-e2e-gce`\npull-kubernetes-kubemark-e2e-gce | ed63cca6b17237db018e56c5f4ee1b4399eaae43 | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-kubemark-e2e-gce/37147/) | `/test pull-kubernetes-kubemark-e2e-gce`\npull-kubernetes-e2e-kops-aws | ed63cca6b17237db018e56c5f4ee1b4399eaae43 | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-e2e-kops-aws/32507/) | `/test pull-kubernetes-e2e-kops-aws`\npull-kubernetes-e2e-gce-etcd3 | ed63cca6b17237db018e56c5f4ee1b4399eaae43 | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-e2e-gce-etcd3/38060/) | `/test pull-kubernetes-e2e-gce-etcd3`\npull-kubernetes-unit | ed63cca6b17237db018e56c5f4ee1b4399eaae43 | [link](https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/46560/pull-kubernetes-unit/38237/) | `/test pull-kubernetes-unit`\n\n[Full PR test history](https://k8s-gubernator.appspot.com/pr/46560). [Your PR dashboard](https://k8s-gubernator.appspot.com/pr/shiywang). Please help us cut down on flakes by [linking to](https://github.com/kubernetes/community/blob/master/contributors/devel/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes/kubernetes/issues?q=is:issue+is:open) when you hit one in your PR.\n\n<details>\n\nInstructions for interacting with me using PR comments are available [here](https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://github.com/kubernetes/test-infra/blob/master/commands.md).\n</details>\n<!-- test report -->"}}
{"actor":{"display_login":"k8s-ci-robot"}}