{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29542","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29542/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29542/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29542/events","html_url":"https://github.com/kubernetes/kubernetes/issues/29542","id":167340725,"number":29542,"title":"kubectl apply does not update ThirdPartyResource object.","user":{"login":"IanLewis","id":49289,"avatar_url":"https://avatars.githubusercontent.com/u/49289?v=3","gravatar_id":"","url":"https://api.github.com/users/IanLewis","html_url":"https://github.com/IanLewis","followers_url":"https://api.github.com/users/IanLewis/followers","following_url":"https://api.github.com/users/IanLewis/following{/other_user}","gists_url":"https://api.github.com/users/IanLewis/gists{/gist_id}","starred_url":"https://api.github.com/users/IanLewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanLewis/subscriptions","organizations_url":"https://api.github.com/users/IanLewis/orgs","repos_url":"https://api.github.com/users/IanLewis/repos","events_url":"https://api.github.com/users/IanLewis/events{/privacy}","received_events_url":"https://api.github.com/users/IanLewis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/good-for-contributor-onboarding","name":"good-for-contributor-onboarding","color":"006b75"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-25T11:03:22Z","updated_at":"2016-08-25T20:45:16Z","closed_at":null,"body":"I have a ThirdPartyResource object. The resource is as follows:\r\n\r\nresource.yaml\r\n\r\n    metadata:\r\n      name: cron-tab.stable.example.com\r\n    apiVersion: extensions/v1beta1\r\n    kind: ThirdPartyResource\r\n    description: \"A specification of a Pod to run on a cron style schedule\"\r\n    versions:\r\n      - name: v1\r\n      - name: v2\r\n\r\ncrontab.yaml\r\n\r\n    apiVersion: \"stable.example.com/v1\"\r\n    kind: \"CronTab\"\r\n    metadata:\r\n      name: hello-world\r\n    cronSpec: \"*/1 * * * *\"\r\n    image: hello-world\r\n\r\nI create the resource and object\r\n\r\n    $ kubectl create -f resource.yaml\r\n    $ kubectl create -f crontab.yaml\r\n\r\nHowever, when I run apply I fails to update the properties.\r\n\r\n    $ cat crontab.yaml \r\n    apiVersion: \"stable.example.com/v1\"\r\n    kind: \"CronTab\"\r\n    metadata:\r\n      name: hello-world\r\n    cronSpec: \"*/5 * * * *\"\r\n    image: hello-world\r\n\r\n    $ kubectl apply -f crontab.yaml\r\n    crontab \"hello-world\" configured\r\n\r\nkubectl is sending a request to the API and if I watch the object I get a modified event but it is still the old value. Getting the object also returns the old value.\r\n\r\n    $ kubectl get crontab hello-world -o json | jq '.cronSpec'\r\n    \"*/1 * * * *\"\r\n\r\nI suspect that kubectl is not diffing the object properly and neglects to send the updated object JSON data."},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/242534360","html_url":"https://github.com/kubernetes/kubernetes/issues/29542#issuecomment-242534360","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29542","id":242534360,"user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T20:45:16Z","updated_at":"2016-08-25T20:45:16Z","body":"We just met the exact same issue. It does not work for current master either.\r\n\r\n@pwittrock Should this be considered as a bug? Why this is a p2 issue?"}}
{"actor":{"display_login":"xiang90"}}