payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/operator-framework/operator-sdk/issues/1265","repository_url":"https://api.github.com/repos/operator-framework/operator-sdk","labels_url":"https://api.github.com/repos/operator-framework/operator-sdk/issues/1265/labels{/name}","comments_url":"https://api.github.com/repos/operator-framework/operator-sdk/issues/1265/comments","events_url":"https://api.github.com/repos/operator-framework/operator-sdk/issues/1265/events","html_url":"https://github.com/operator-framework/operator-sdk/issues/1265","id":426790234,"node_id":"MDU6SXNzdWU0MjY3OTAyMzQ=","number":1265,"title":"operator-sdk generate k8s failing to generate DeepCopyObject()","user":{"login":"etsauer","id":4500758,"node_id":"MDQ6VXNlcjQ1MDA3NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/4500758?v=4","gravatar_id":"","url":"https://api.github.com/users/etsauer","html_url":"https://github.com/etsauer","followers_url":"https://api.github.com/users/etsauer/followers","following_url":"https://api.github.com/users/etsauer/following{/other_user}","gists_url":"https://api.github.com/users/etsauer/gists{/gist_id}","starred_url":"https://api.github.com/users/etsauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etsauer/subscriptions","organizations_url":"https://api.github.com/users/etsauer/orgs","repos_url":"https://api.github.com/users/etsauer/repos","events_url":"https://api.github.com/users/etsauer/events{/privacy}","received_events_url":"https://api.github.com/users/etsauer/received_events","type":"User","site_admin":false},"labels":[{"id":830266071,"node_id":"MDU6TGFiZWw4MzAyNjYwNzE=","url":"https://api.github.com/repos/operator-framework/operator-sdk/labels/question","name":"question","color":"d876e3","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2019-03-29T02:42:39Z","updated_at":"2019-04-01T19:43:06Z","closed_at":"2019-04-01T19:43:06Z","author_association":"NONE","body":"## Type of question\r\n\r\nHaving an issue with SDK code generation\r\n\r\n## Question\r\n\r\n**What did you do?**\r\n\r\nI updated my CRD resource _types.go file, and then ran:\r\n```\r\n$ operator-sdk generate k8s\r\nINFO[0000] Running deepcopy code-generation for Custom Resource group versions: [event:[v1], ] \r\nINFO[0002] Code-generation complete.\r\n\r\n$ operator-sdk up local\r\n```\r\n\r\n**What did you expect to see?**\r\n\r\nI expected my operator to compile, and start cleanly\r\n\r\n**What did you see instead? Under which circumstances?**\r\n\r\n```\r\n$ operator-sdk up local\r\nINFO[0000] Running the operator locally.                \r\nINFO[0000] Using namespace cert-operator.               \r\n# github.com/redhat-cop/events-notifier/pkg/apis/event/v1\r\npkg/apis/event/v1/eventsubscription_types.go:49:44: cannot use EventSubscription literal (type *EventSubscription) as type runtime.Object in argument to SchemeBuilder.Register:\r\n\t*EventSubscription does not implement runtime.Object (missing DeepCopyObject method)\r\nError: failed to build operator to run locally: (failed to exec []string{\"go\", \"build\", \"-o\", \"build/_output/bin/events-notifier-local\", \"cmd/manager/main.go\"}: exit status 2)\r\nUsage:\r\n  operator-sdk up local [flags]\r\n```\r\n\r\n**Environment**\r\n* operator-sdk version:\r\n```\r\n$ operator-sdk --version\r\noperator-sdk version v0.5.0\r\n```\r\n\r\n* Kubernetes version information:\r\n\r\n```\r\n$ kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"11+\", GitVersion:\"v1.11.0+d4cacc0\", GitCommit:\"d4cacc0\", GitTreeState:\"clean\", BuildDate:\"2018-10-10T16:38:01Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"11+\", GitVersion:\"v1.11.0+d4cacc0\", GitCommit:\"d4cacc0\", GitTreeState:\"clean\", BuildDate:\"2019-01-14T00:24:11Z\", GoVersion:\"go1.10.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n* Kubernetes cluster kind: \r\n\r\nOpenShift v3.11\r\n\r\n**Additional context**\r\n\r\nCode in question is here: https://github.com/etsauer/k8s-event-notifier/blob/master/pkg/apis/event/v1/eventsubscription_types.go\r\n\r\nIt's worth noting that if I manually add a `DeepCopyObject()` method, everything compiles and runs as epxected.\r\n"}}
other: {"actor":{"display_login":"etsauer"}}