{"action":"created","issue":{"url":"https://api.github.com/repos/zalando-incubator/kopf/issues/187","repository_url":"https://api.github.com/repos/zalando-incubator/kopf","labels_url":"https://api.github.com/repos/zalando-incubator/kopf/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/zalando-incubator/kopf/issues/187/comments","events_url":"https://api.github.com/repos/zalando-incubator/kopf/issues/187/events","html_url":"https://github.com/zalando-incubator/kopf/issues/187","id":494181828,"node_id":"MDU6SXNzdWU0OTQxODE4Mjg=","number":187,"title":"Running the Tutorial against an EKS cluster","user":{"login":"jicowan","id":8750251,"node_id":"MDQ6VXNlcjg3NTAyNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8750251?v=4","gravatar_id":"","url":"https://api.github.com/users/jicowan","html_url":"https://github.com/jicowan","followers_url":"https://api.github.com/users/jicowan/followers","following_url":"https://api.github.com/users/jicowan/following{/other_user}","gists_url":"https://api.github.com/users/jicowan/gists{/gist_id}","starred_url":"https://api.github.com/users/jicowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jicowan/subscriptions","organizations_url":"https://api.github.com/users/jicowan/orgs","repos_url":"https://api.github.com/users/jicowan/repos","events_url":"https://api.github.com/users/jicowan/events{/privacy}","received_events_url":"https://api.github.com/users/jicowan/received_events","type":"User","site_admin":false},"labels":[{"id":1290393589,"node_id":"MDU6TGFiZWwxMjkwMzkzNTg5","url":"https://api.github.com/repos/zalando-incubator/kopf/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":1309314705,"node_id":"MDU6TGFiZWwxMzA5MzE0NzA1","url":"https://api.github.com/repos/zalando-incubator/kopf/labels/documentation","name":"documentation","color":"4a6fb2","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-09-16T17:31:15Z","updated_at":"2019-10-04T21:05:12Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nI would like to run the kopf tutorial on an EKS cluster instead of minikube.  \r\n\r\n## Actual Behavior\r\nWhen I run `kopf run <file>.py --verbose` I get an unauthorized error: \r\n`pykube.exceptions.HTTPError: customresourcedefinitions.apiextensions.k8s.io \"kopfpeerings.zalando.org\" is forbidden: User \"system:anonymous\" cannot get resource \"customresourcedefinitions\" in API group \"apiextensions.k8s.io\" at the cluster scope`\r\n\r\nI see that kopf is using the pykube library which doesn't natively support IAM authentication.  Is there a way to make this work without using a bearer token for authentication?\r\n\r\n## Specifications\r\n\r\n  - Platform: EKS \r\n  - Kubernetes version: *(use `kubectl version`)* 1.13\r\n  - Python version: *(use `python --version`)* 3.7.4\r\n  - Python packages installed: *(use `pip freeze --all`)* \r\naiohttp==3.6.0\r\naiojobs==0.2.2\r\nasync-timeout==3.0.1\r\nattrs==19.1.0\r\ncachetools==3.1.1\r\ncertifi==2019.9.11\r\nchardet==3.0.4\r\nClick==7.0\r\ngoogle-auth==1.6.3\r\nidna==2.8\r\niso8601==0.1.12\r\nkopf==0.21\r\nkubernetes==10.0.1\r\nmultidict==4.5.2\r\noauthlib==3.1.0\r\npip==19.0.3\r\npyasn1==0.4.7\r\npyasn1-modules==0.2.6\r\npykube-ng==19.9.2\r\npython-dateutil==2.8.0\r\nPyYAML==5.1.2\r\nrequests==2.22.0\r\nrequests-oauthlib==1.2.0\r\nrsa==4.0\r\nsetuptools==40.8.0\r\nsix==1.12.0\r\nurllib3==1.25.3\r\nwebsocket-client==0.56.0\r\nyarl==1.3.0\r\n\r\n```\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/zalando-incubator/kopf/issues/comments/538559532","html_url":"https://github.com/zalando-incubator/kopf/issues/187#issuecomment-538559532","issue_url":"https://api.github.com/repos/zalando-incubator/kopf/issues/187","id":538559532,"node_id":"MDEyOklzc3VlQ29tbWVudDUzODU1OTUzMg==","user":{"login":"jicowan","id":8750251,"node_id":"MDQ6VXNlcjg3NTAyNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/8750251?v=4","gravatar_id":"","url":"https://api.github.com/users/jicowan","html_url":"https://github.com/jicowan","followers_url":"https://api.github.com/users/jicowan/followers","following_url":"https://api.github.com/users/jicowan/following{/other_user}","gists_url":"https://api.github.com/users/jicowan/gists{/gist_id}","starred_url":"https://api.github.com/users/jicowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jicowan/subscriptions","organizations_url":"https://api.github.com/users/jicowan/orgs","repos_url":"https://api.github.com/users/jicowan/repos","events_url":"https://api.github.com/users/jicowan/events{/privacy}","received_events_url":"https://api.github.com/users/jicowan/received_events","type":"User","site_admin":false},"created_at":"2019-10-04T21:05:12Z","updated_at":"2019-10-04T21:05:12Z","author_association":"NONE","body":"Thanks @hjacobs.  I added a section to my code so I could test it locally instead of running in the cluster.  "}}
{"actor":{"display_login":"jicowan"}}