{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63110","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63110/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63110/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63110/events","html_url":"https://github.com/kubernetes/kubernetes/pull/63110","id":317433592,"number":63110,"title":"Automated cherry pick of #62655: Modify the kubeadm upgrade DAG for the TLS Upgrade","user":{"login":"stealthybox","id":2754700,"avatar_url":"https://avatars0.githubusercontent.com/u/2754700?v=4","gravatar_id":"","url":"https://api.github.com/users/stealthybox","html_url":"https://github.com/stealthybox","followers_url":"https://api.github.com/users/stealthybox/followers","following_url":"https://api.github.com/users/stealthybox/following{/other_user}","gists_url":"https://api.github.com/users/stealthybox/gists{/gist_id}","starred_url":"https://api.github.com/users/stealthybox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stealthybox/subscriptions","organizations_url":"https://api.github.com/users/stealthybox/orgs","repos_url":"https://api.github.com/users/stealthybox/repos","events_url":"https://api.github.com/users/stealthybox/events{/privacy}","received_events_url":"https://api.github.com/users/stealthybox/received_events","type":"User","site_admin":false},"labels":[{"id":451459590,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/kubeadm","name":"area/kubeadm","color":"0052cc","default":false},{"id":477397086,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"bfe5bf","default":false},{"id":680154135,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/do-not-merge/cherry-pick-not-approved","name":"do-not-merge/cherry-pick-not-approved","color":"e11d21","default":false},{"id":173494222,"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/cluster-lifecycle","name":"sig/cluster-lifecycle","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":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-24T23:49:11Z","updated_at":"2018-04-25T01:05:35Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/63110","html_url":"https://github.com/kubernetes/kubernetes/pull/63110","diff_url":"https://github.com/kubernetes/kubernetes/pull/63110.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/63110.patch"},"body":"Cherry pick of #62655 on release-1.10.\r\n\r\n#62655: Modify the kubeadm upgrade DAG for the TLS Upgrade"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/384127593","html_url":"https://github.com/kubernetes/kubernetes/pull/63110#issuecomment-384127593","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/63110","id":384127593,"user":{"login":"stealthybox","id":2754700,"avatar_url":"https://avatars0.githubusercontent.com/u/2754700?v=4","gravatar_id":"","url":"https://api.github.com/users/stealthybox","html_url":"https://github.com/stealthybox","followers_url":"https://api.github.com/users/stealthybox/followers","following_url":"https://api.github.com/users/stealthybox/following{/other_user}","gists_url":"https://api.github.com/users/stealthybox/gists{/gist_id}","starred_url":"https://api.github.com/users/stealthybox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stealthybox/subscriptions","organizations_url":"https://api.github.com/users/stealthybox/orgs","repos_url":"https://api.github.com/users/stealthybox/repos","events_url":"https://api.github.com/users/stealthybox/events{/privacy}","received_events_url":"https://api.github.com/users/stealthybox/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T01:05:35Z","updated_at":"2018-04-25T01:05:35Z","author_association":"CONTRIBUTOR","body":"```bash\r\ncd ~/go/src/k8s.io/kubernetes\r\nbazel build //cmd/kubeadm --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64\r\n\r\ncd ~/repos\r\ngit clone git@github.com:stealthybox/vagrant-kubeadm-testing.git\r\ncd vagrant-kubeadm-testing\r\n\r\nissue=cherry-63110 ./copy_kubeadm_bin.sh\r\nvagrant up && vagrant ssh -- -tt sudo bash\r\n# root@vagrant:/vagrant#\r\ntarget_bin=/vagrant/bin/cherry-63110_kubeadm /vagrant/testTLSUpgradeNoDowngrade.sh\r\n```\r\n\r\n#### /vagrant/testTLSUpgradeNoDowngrade.sh\r\n```bash\r\n#!/bin/bash\r\n# Usage:\r\n#   target_bin=/vagrant/bin/TLSUpgrade_kubeadm /vagrant/testTLSUpgradeNoDowngrade.sh\r\nset -ex\r\n\r\nsource_bin=${source_bin:-kubeadm}\r\ntarget_bin=${target_bin}\r\n\r\n[ \"$source_bin\" = \"\" ] && echo \"please set source_bin\" && exit 1\r\n[ \"$target_bin\" = \"\" ] && echo \"please set target_bin\" && exit 2\r\n\r\n${source_bin} reset \\\r\n  && ${source_bin} init --kubernetes-version 1.9.1 \\\r\n  && kubectl apply -f \"https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\\n')\"\r\n\r\nsleep 120 # wait for CNI and Node Ready\r\n${target_bin} upgrade apply --yes 1.10.0  # non-TLS to TLS\r\nsleep 60 # wait for cluster components to stabilize\r\n${target_bin} upgrade apply --yes 1.10.1 # TLS to TLS\r\n\r\necho\r\necho Test Passed\r\n```"}}
{"actor":{"display_login":"stealthybox"}}