{"action":"created","comment":{"url":"https://api.github.com/repos/giantswarm/azure-operator/pulls/comments/155235849","pull_request_review_id":81520192,"id":155235849,"diff_hunk":"@@ -0,0 +1,85 @@\n+package dnsrecord\n+\n+import (\n+\t\"context\"\n+\t\"fmt\"\n+\n+\t\"github.com/Azure/azure-sdk-for-go/arm/dns\"\n+\t\"github.com/giantswarm/azure-operator/service/key\"\n+\t\"github.com/giantswarm/azuretpr\"\n+\t\"github.com/giantswarm/microerror\"\n+\t\"github.com/giantswarm/operatorkit/framework\"\n+)\n+\n+// ApplyDeleteChange deletes the resource group via the Azure API.\n+func (r *Resource) ApplyDeleteChange(ctx context.Context, obj, change interface{}) error {\n+\to, err := toCustomObject(obj)\n+\tif err != nil {\n+\t\treturn microerror.Maskf(err, \"deleting host cluster DNS records\")\n+\t}\n+\tc, err := toDNSRecords(change)\n+\tif err != nil {\n+\t\treturn microerror.Maskf(err, \"deleting host cluster DNS records\")\n+\t}\n+\n+\treturn r.applyDeleteChange(ctx, o, c)\n+}","path":"service/resource/dnsrecord/delete.go","position":26,"original_position":26,"commit_id":"15658d14281d99ea8c182d44fb305eaf463e75ca","original_commit_id":"db374e0bb8d0e072145ab1fa6cb3f6366a84ae09","user":{"login":"kopiczko","id":4608994,"avatar_url":"https://avatars0.githubusercontent.com/u/4608994?v=4","gravatar_id":"","url":"https://api.github.com/users/kopiczko","html_url":"https://github.com/kopiczko","followers_url":"https://api.github.com/users/kopiczko/followers","following_url":"https://api.github.com/users/kopiczko/following{/other_user}","gists_url":"https://api.github.com/users/kopiczko/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiczko/subscriptions","organizations_url":"https://api.github.com/users/kopiczko/orgs","repos_url":"https://api.github.com/users/kopiczko/repos","events_url":"https://api.github.com/users/kopiczko/events{/privacy}","received_events_url":"https://api.github.com/users/kopiczko/received_events","type":"User","site_admin":false},"body":"Types can be passed as arguments.\r\n\r\nWhat would you like to generate then?","created_at":"2017-12-06T13:29:39Z","updated_at":"2017-12-06T13:29:39Z","html_url":"https://github.com/giantswarm/azure-operator/pull/68#discussion_r155235849","pull_request_url":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/giantswarm/azure-operator/pulls/comments/155235849"},"html":{"href":"https://github.com/giantswarm/azure-operator/pull/68#discussion_r155235849"},"pull_request":{"href":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68"}},"in_reply_to_id":155224848},"pull_request":{"url":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68","id":156528269,"html_url":"https://github.com/giantswarm/azure-operator/pull/68","diff_url":"https://github.com/giantswarm/azure-operator/pull/68.diff","patch_url":"https://github.com/giantswarm/azure-operator/pull/68.patch","issue_url":"https://api.github.com/repos/giantswarm/azure-operator/issues/68","number":68,"state":"open","locked":false,"title":"dnsrecord: add new resource","user":{"login":"kopiczko","id":4608994,"avatar_url":"https://avatars0.githubusercontent.com/u/4608994?v=4","gravatar_id":"","url":"https://api.github.com/users/kopiczko","html_url":"https://github.com/kopiczko","followers_url":"https://api.github.com/users/kopiczko/followers","following_url":"https://api.github.com/users/kopiczko/following{/other_user}","gists_url":"https://api.github.com/users/kopiczko/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiczko/subscriptions","organizations_url":"https://api.github.com/users/kopiczko/orgs","repos_url":"https://api.github.com/users/kopiczko/repos","events_url":"https://api.github.com/users/kopiczko/events{/privacy}","received_events_url":"https://api.github.com/users/kopiczko/received_events","type":"User","site_admin":false},"body":"This resource takes name servers from the DNS zone created inside guest cluster\nand creates an NS record inside host cluster zone.\n\nExample:\n\nGuest cluster DNS zone:\n\neggs2.k8s.gollum.westeurope.azure.gigantic.io\n@ ns1-01.azure-dns.com.\n\nHost cluster DNS zone:\n\ngollum.westeurope.azure.gigantic.io\n@ ns5-05.azure-dns.com.\nNS eggs2.k8s ns1-01.azure-dns.com.","created_at":"2017-12-05T17:38:24Z","updated_at":"2017-12-06T13:29:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3adfd316bd2e212a4b97ba1c566f5f883d7acf68","assignee":{"login":"kopiczko","id":4608994,"avatar_url":"https://avatars0.githubusercontent.com/u/4608994?v=4","gravatar_id":"","url":"https://api.github.com/users/kopiczko","html_url":"https://github.com/kopiczko","followers_url":"https://api.github.com/users/kopiczko/followers","following_url":"https://api.github.com/users/kopiczko/following{/other_user}","gists_url":"https://api.github.com/users/kopiczko/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiczko/subscriptions","organizations_url":"https://api.github.com/users/kopiczko/orgs","repos_url":"https://api.github.com/users/kopiczko/repos","events_url":"https://api.github.com/users/kopiczko/events{/privacy}","received_events_url":"https://api.github.com/users/kopiczko/received_events","type":"User","site_admin":false},"assignees":[{"login":"kopiczko","id":4608994,"avatar_url":"https://avatars0.githubusercontent.com/u/4608994?v=4","gravatar_id":"","url":"https://api.github.com/users/kopiczko","html_url":"https://github.com/kopiczko","followers_url":"https://api.github.com/users/kopiczko/followers","following_url":"https://api.github.com/users/kopiczko/following{/other_user}","gists_url":"https://api.github.com/users/kopiczko/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiczko/subscriptions","organizations_url":"https://api.github.com/users/kopiczko/orgs","repos_url":"https://api.github.com/users/kopiczko/repos","events_url":"https://api.github.com/users/kopiczko/events{/privacy}","received_events_url":"https://api.github.com/users/kopiczko/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"rossf7","id":311527,"avatar_url":"https://avatars1.githubusercontent.com/u/311527?v=4","gravatar_id":"","url":"https://api.github.com/users/rossf7","html_url":"https://github.com/rossf7","followers_url":"https://api.github.com/users/rossf7/followers","following_url":"https://api.github.com/users/rossf7/following{/other_user}","gists_url":"https://api.github.com/users/rossf7/gists{/gist_id}","starred_url":"https://api.github.com/users/rossf7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossf7/subscriptions","organizations_url":"https://api.github.com/users/rossf7/orgs","repos_url":"https://api.github.com/users/rossf7/repos","events_url":"https://api.github.com/users/rossf7/events{/privacy}","received_events_url":"https://api.github.com/users/rossf7/received_events","type":"User","site_admin":false},{"login":"Cocotton","id":4698229,"avatar_url":"https://avatars3.githubusercontent.com/u/4698229?v=4","gravatar_id":"","url":"https://api.github.com/users/Cocotton","html_url":"https://github.com/Cocotton","followers_url":"https://api.github.com/users/Cocotton/followers","following_url":"https://api.github.com/users/Cocotton/following{/other_user}","gists_url":"https://api.github.com/users/Cocotton/gists{/gist_id}","starred_url":"https://api.github.com/users/Cocotton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cocotton/subscriptions","organizations_url":"https://api.github.com/users/Cocotton/orgs","repos_url":"https://api.github.com/users/Cocotton/repos","events_url":"https://api.github.com/users/Cocotton/events{/privacy}","received_events_url":"https://api.github.com/users/Cocotton/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68/commits","review_comments_url":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68/comments","review_comment_url":"https://api.github.com/repos/giantswarm/azure-operator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/giantswarm/azure-operator/issues/68/comments","statuses_url":"https://api.github.com/repos/giantswarm/azure-operator/statuses/15658d14281d99ea8c182d44fb305eaf463e75ca","head":{"label":"giantswarm:dnsrecord","ref":"dnsrecord","sha":"15658d14281d99ea8c182d44fb305eaf463e75ca","user":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":99101543,"name":"azure-operator","full_name":"giantswarm/azure-operator","owner":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/giantswarm/azure-operator","description":"Azure operator manages Kubernetes clusters running in Giantnetes on Azure","fork":false,"url":"https://api.github.com/repos/giantswarm/azure-operator","forks_url":"https://api.github.com/repos/giantswarm/azure-operator/forks","keys_url":"https://api.github.com/repos/giantswarm/azure-operator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantswarm/azure-operator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantswarm/azure-operator/teams","hooks_url":"https://api.github.com/repos/giantswarm/azure-operator/hooks","issue_events_url":"https://api.github.com/repos/giantswarm/azure-operator/issues/events{/number}","events_url":"https://api.github.com/repos/giantswarm/azure-operator/events","assignees_url":"https://api.github.com/repos/giantswarm/azure-operator/assignees{/user}","branches_url":"https://api.github.com/repos/giantswarm/azure-operator/branches{/branch}","tags_url":"https://api.github.com/repos/giantswarm/azure-operator/tags","blobs_url":"https://api.github.com/repos/giantswarm/azure-operator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantswarm/azure-operator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantswarm/azure-operator/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantswarm/azure-operator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantswarm/azure-operator/statuses/{sha}","languages_url":"https://api.github.com/repos/giantswarm/azure-operator/languages","stargazers_url":"https://api.github.com/repos/giantswarm/azure-operator/stargazers","contributors_url":"https://api.github.com/repos/giantswarm/azure-operator/contributors","subscribers_url":"https://api.github.com/repos/giantswarm/azure-operator/subscribers","subscription_url":"https://api.github.com/repos/giantswarm/azure-operator/subscription","commits_url":"https://api.github.com/repos/giantswarm/azure-operator/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantswarm/azure-operator/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantswarm/azure-operator/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantswarm/azure-operator/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantswarm/azure-operator/contents/{+path}","compare_url":"https://api.github.com/repos/giantswarm/azure-operator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantswarm/azure-operator/merges","archive_url":"https://api.github.com/repos/giantswarm/azure-operator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantswarm/azure-operator/downloads","issues_url":"https://api.github.com/repos/giantswarm/azure-operator/issues{/number}","pulls_url":"https://api.github.com/repos/giantswarm/azure-operator/pulls{/number}","milestones_url":"https://api.github.com/repos/giantswarm/azure-operator/milestones{/number}","notifications_url":"https://api.github.com/repos/giantswarm/azure-operator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantswarm/azure-operator/labels{/name}","releases_url":"https://api.github.com/repos/giantswarm/azure-operator/releases{/id}","deployments_url":"https://api.github.com/repos/giantswarm/azure-operator/deployments","created_at":"2017-08-02T10:00:21Z","updated_at":"2017-08-28T00:36:38Z","pushed_at":"2017-12-06T13:21:24Z","git_url":"git://github.com/giantswarm/azure-operator.git","ssh_url":"git@github.com:giantswarm/azure-operator.git","clone_url":"https://github.com/giantswarm/azure-operator.git","svn_url":"https://github.com/giantswarm/azure-operator","homepage":"","size":23973,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"giantswarm:master","ref":"master","sha":"80c5c34f0cc0c06be61f77abb63b8440254779fe","user":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":99101543,"name":"azure-operator","full_name":"giantswarm/azure-operator","owner":{"login":"giantswarm","id":7556340,"avatar_url":"https://avatars3.githubusercontent.com/u/7556340?v=4","gravatar_id":"","url":"https://api.github.com/users/giantswarm","html_url":"https://github.com/giantswarm","followers_url":"https://api.github.com/users/giantswarm/followers","following_url":"https://api.github.com/users/giantswarm/following{/other_user}","gists_url":"https://api.github.com/users/giantswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/giantswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giantswarm/subscriptions","organizations_url":"https://api.github.com/users/giantswarm/orgs","repos_url":"https://api.github.com/users/giantswarm/repos","events_url":"https://api.github.com/users/giantswarm/events{/privacy}","received_events_url":"https://api.github.com/users/giantswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/giantswarm/azure-operator","description":"Azure operator manages Kubernetes clusters running in Giantnetes on Azure","fork":false,"url":"https://api.github.com/repos/giantswarm/azure-operator","forks_url":"https://api.github.com/repos/giantswarm/azure-operator/forks","keys_url":"https://api.github.com/repos/giantswarm/azure-operator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giantswarm/azure-operator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giantswarm/azure-operator/teams","hooks_url":"https://api.github.com/repos/giantswarm/azure-operator/hooks","issue_events_url":"https://api.github.com/repos/giantswarm/azure-operator/issues/events{/number}","events_url":"https://api.github.com/repos/giantswarm/azure-operator/events","assignees_url":"https://api.github.com/repos/giantswarm/azure-operator/assignees{/user}","branches_url":"https://api.github.com/repos/giantswarm/azure-operator/branches{/branch}","tags_url":"https://api.github.com/repos/giantswarm/azure-operator/tags","blobs_url":"https://api.github.com/repos/giantswarm/azure-operator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giantswarm/azure-operator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giantswarm/azure-operator/git/refs{/sha}","trees_url":"https://api.github.com/repos/giantswarm/azure-operator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giantswarm/azure-operator/statuses/{sha}","languages_url":"https://api.github.com/repos/giantswarm/azure-operator/languages","stargazers_url":"https://api.github.com/repos/giantswarm/azure-operator/stargazers","contributors_url":"https://api.github.com/repos/giantswarm/azure-operator/contributors","subscribers_url":"https://api.github.com/repos/giantswarm/azure-operator/subscribers","subscription_url":"https://api.github.com/repos/giantswarm/azure-operator/subscription","commits_url":"https://api.github.com/repos/giantswarm/azure-operator/commits{/sha}","git_commits_url":"https://api.github.com/repos/giantswarm/azure-operator/git/commits{/sha}","comments_url":"https://api.github.com/repos/giantswarm/azure-operator/comments{/number}","issue_comment_url":"https://api.github.com/repos/giantswarm/azure-operator/issues/comments{/number}","contents_url":"https://api.github.com/repos/giantswarm/azure-operator/contents/{+path}","compare_url":"https://api.github.com/repos/giantswarm/azure-operator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giantswarm/azure-operator/merges","archive_url":"https://api.github.com/repos/giantswarm/azure-operator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giantswarm/azure-operator/downloads","issues_url":"https://api.github.com/repos/giantswarm/azure-operator/issues{/number}","pulls_url":"https://api.github.com/repos/giantswarm/azure-operator/pulls{/number}","milestones_url":"https://api.github.com/repos/giantswarm/azure-operator/milestones{/number}","notifications_url":"https://api.github.com/repos/giantswarm/azure-operator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giantswarm/azure-operator/labels{/name}","releases_url":"https://api.github.com/repos/giantswarm/azure-operator/releases{/id}","deployments_url":"https://api.github.com/repos/giantswarm/azure-operator/deployments","created_at":"2017-08-02T10:00:21Z","updated_at":"2017-08-28T00:36:38Z","pushed_at":"2017-12-06T13:21:24Z","git_url":"git://github.com/giantswarm/azure-operator.git","ssh_url":"git@github.com:giantswarm/azure-operator.git","clone_url":"https://github.com/giantswarm/azure-operator.git","svn_url":"https://github.com/giantswarm/azure-operator","homepage":"","size":23973,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68"},"html":{"href":"https://github.com/giantswarm/azure-operator/pull/68"},"issue":{"href":"https://api.github.com/repos/giantswarm/azure-operator/issues/68"},"comments":{"href":"https://api.github.com/repos/giantswarm/azure-operator/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/giantswarm/azure-operator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/giantswarm/azure-operator/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/giantswarm/azure-operator/statuses/15658d14281d99ea8c182d44fb305eaf463e75ca"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kopiczko"}}