{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/autoheal/issues/69","repository_url":"https://api.github.com/repos/openshift/autoheal","labels_url":"https://api.github.com/repos/openshift/autoheal/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/openshift/autoheal/issues/69/comments","events_url":"https://api.github.com/repos/openshift/autoheal/issues/69/events","html_url":"https://github.com/openshift/autoheal/pull/69","id":317310724,"number":69,"title":"Add API type conversion","user":{"login":"jhernand","id":1423971,"avatar_url":"https://avatars3.githubusercontent.com/u/1423971?v=4","gravatar_id":"","url":"https://api.github.com/users/jhernand","html_url":"https://github.com/jhernand","followers_url":"https://api.github.com/users/jhernand/followers","following_url":"https://api.github.com/users/jhernand/following{/other_user}","gists_url":"https://api.github.com/users/jhernand/gists{/gist_id}","starred_url":"https://api.github.com/users/jhernand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhernand/subscriptions","organizations_url":"https://api.github.com/users/jhernand/orgs","repos_url":"https://api.github.com/users/jhernand/repos","events_url":"https://api.github.com/users/jhernand/events{/privacy}","received_events_url":"https://api.github.com/users/jhernand/received_events","type":"User","site_admin":false},"labels":[{"id":882583855,"url":"https://api.github.com/repos/openshift/autoheal/labels/size/L","name":"size/L","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"moolitayer","id":3010449,"avatar_url":"https://avatars1.githubusercontent.com/u/3010449?v=4","gravatar_id":"","url":"https://api.github.com/users/moolitayer","html_url":"https://github.com/moolitayer","followers_url":"https://api.github.com/users/moolitayer/followers","following_url":"https://api.github.com/users/moolitayer/following{/other_user}","gists_url":"https://api.github.com/users/moolitayer/gists{/gist_id}","starred_url":"https://api.github.com/users/moolitayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moolitayer/subscriptions","organizations_url":"https://api.github.com/users/moolitayer/orgs","repos_url":"https://api.github.com/users/moolitayer/repos","events_url":"https://api.github.com/users/moolitayer/events{/privacy}","received_events_url":"https://api.github.com/users/moolitayer/received_events","type":"User","site_admin":false},"assignees":[{"login":"moolitayer","id":3010449,"avatar_url":"https://avatars1.githubusercontent.com/u/3010449?v=4","gravatar_id":"","url":"https://api.github.com/users/moolitayer","html_url":"https://github.com/moolitayer","followers_url":"https://api.github.com/users/moolitayer/followers","following_url":"https://api.github.com/users/moolitayer/following{/other_user}","gists_url":"https://api.github.com/users/moolitayer/gists{/gist_id}","starred_url":"https://api.github.com/users/moolitayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moolitayer/subscriptions","organizations_url":"https://api.github.com/users/moolitayer/orgs","repos_url":"https://api.github.com/users/moolitayer/repos","events_url":"https://api.github.com/users/moolitayer/events{/privacy}","received_events_url":"https://api.github.com/users/moolitayer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-04-24T16:50:28Z","updated_at":"2018-04-25T06:52:13Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openshift/autoheal/pulls/69","html_url":"https://github.com/openshift/autoheal/pull/69","diff_url":"https://github.com/openshift/autoheal/pull/69.diff","patch_url":"https://github.com/openshift/autoheal/pull/69.patch"},"body":"Currently the rules specified in the configuration use explicitly version `v1alpha2` of the API. This means that if in the future we introduce and support a new version of the API we will have to stop supporting `v1alpha2`, or else explicitly convert those types to the new version of the API. To improve that this patch uses the Kubernetes API version conversion mechanisms to deserialize the rules. That way the user will be able to specify in the configuration file the version of each rule. For example:\r\n\r\n```yaml\r\nrules:\r\n\r\n- apiVersion: autoheal.openshift.io/v1alpha2\r\n  kind: HealingRule\r\n  metadata:\r\n    name: my-old-rule\r\n  ...\r\n\r\n- apiVersion: autoheal.openshift.io/v1\r\n  kind: HealingRule\r\n  metadata:\r\n    name: my-new-rule\r\n  ...\r\n```\r\n\r\nThe default values for `apiVersio` will be `autoheal.openshift.io/v1alpha2` so users don't need to explicitly indicate it."},"comment":{"url":"https://api.github.com/repos/openshift/autoheal/issues/comments/384179231","html_url":"https://github.com/openshift/autoheal/pull/69#issuecomment-384179231","issue_url":"https://api.github.com/repos/openshift/autoheal/issues/69","id":384179231,"user":{"login":"openshift-ci-robot","id":30189103,"avatar_url":"https://avatars1.githubusercontent.com/u/30189103?v=4","gravatar_id":"","url":"https://api.github.com/users/openshift-ci-robot","html_url":"https://github.com/openshift-ci-robot","followers_url":"https://api.github.com/users/openshift-ci-robot/followers","following_url":"https://api.github.com/users/openshift-ci-robot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-ci-robot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-ci-robot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-ci-robot/subscriptions","organizations_url":"https://api.github.com/users/openshift-ci-robot/orgs","repos_url":"https://api.github.com/users/openshift-ci-robot/repos","events_url":"https://api.github.com/users/openshift-ci-robot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-ci-robot/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T06:52:13Z","updated_at":"2018-04-25T06:52:13Z","author_association":"NONE","body":"New changes are detected. LGTM label has been removed."}}
{"actor":{"display_login":"openshift-ci-robot"}}