{"action":"created","issue":{"url":"https://api.github.com/repos/kedgeproject/kedge/issues/157","repository_url":"https://api.github.com/repos/kedgeproject/kedge","labels_url":"https://api.github.com/repos/kedgeproject/kedge/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/kedgeproject/kedge/issues/157/comments","events_url":"https://api.github.com/repos/kedgeproject/kedge/issues/157/events","html_url":"https://github.com/kedgeproject/kedge/issues/157","id":242672996,"number":157,"title":"Allow adding Kubernetes artifacts to Kedge file.","user":{"login":"kadel","id":57206,"avatar_url":"https://avatars5.githubusercontent.com/u/57206?v=4","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"labels":[{"id":646236044,"url":"https://api.github.com/repos/kedgeproject/kedge/labels/kind/task","name":"kind/task","color":"1d76db","default":false},{"id":626652098,"url":"https://api.github.com/repos/kedgeproject/kedge/labels/priority/high","name":"priority/high","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-13T11:41:58Z","updated_at":"2017-07-17T13:40:43Z","closed_at":null,"body":"It should be possible to add ordinary Kubernetes object to Kedge yaml file.\r\n\r\nThis will allow extending Kedge YAML  files with any Kubernetes object regardless if we add explicit support for it or not.\r\n\r\n\r\nImplementation:\r\n\r\nAdd new top level key that contains list of kubernetes objects.\r\nLets call it `extras` for now as I can't think of proper name :smile: \r\n\r\nexample\r\n```yaml\r\nname: httpd\r\ncontainers:\r\n- image: centos/httpd\r\nservices:\r\n  - name: httpd\r\n    type: NodePort\r\n    ports:\r\n    - port: 8080\r\n      targetPort: 80\r\nextras:\r\n  - apiVersion: batch/v2alpha1\r\n    kind: CronJob\r\n    metadata:\r\n      name: hello\r\n    spec:\r\n      schedule: \"*/1 * * * *\"\r\n      jobTemplate:\r\n        spec:\r\n          template:\r\n            spec:\r\n              containers:\r\n              - name: hello\r\n                image: busybox\r\n                args:\r\n                - /bin/sh\r\n                - -c\r\n                - date; echo Hello from the Kubernetes cluster\r\n              restartPolicy: OnFailure\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kedgeproject/kedge/issues/comments/315758599","html_url":"https://github.com/kedgeproject/kedge/issues/157#issuecomment-315758599","issue_url":"https://api.github.com/repos/kedgeproject/kedge/issues/157","id":315758599,"user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars5.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T13:40:43Z","updated_at":"2017-07-17T13:40:43Z","body":"@kadel About the UX, if someone wants to put in their Kubernetes resource, they should just be able to copy and paste it and it should work. Increasing a level of indentation will mess that up.\r\n\r\n`---` can be used in this case IMO!\r\n\r\nIs there some way we can do it at the root level?"}}
{"actor":{"display_login":"containscafeine"}}