{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/826","repository_url":"https://api.github.com/repos/fabric8io/kubernetes-client","labels_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/826/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/826/comments","events_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/826/events","html_url":"https://github.com/fabric8io/kubernetes-client/issues/826","id":245297780,"number":826,"title":"is there a way to specify tolerations and affinity with the client?","user":{"login":"mkleint","id":178549,"avatar_url":"https://avatars1.githubusercontent.com/u/178549?v=4","gravatar_id":"","url":"https://api.github.com/users/mkleint","html_url":"https://github.com/mkleint","followers_url":"https://api.github.com/users/mkleint/followers","following_url":"https://api.github.com/users/mkleint/following{/other_user}","gists_url":"https://api.github.com/users/mkleint/gists{/gist_id}","starred_url":"https://api.github.com/users/mkleint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkleint/subscriptions","organizations_url":"https://api.github.com/users/mkleint/orgs","repos_url":"https://api.github.com/users/mkleint/repos","events_url":"https://api.github.com/users/mkleint/events{/privacy}","received_events_url":"https://api.github.com/users/mkleint/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-25T06:26:04Z","updated_at":"2018-03-26T09:20:33Z","closed_at":"2018-03-26T09:08:35Z","author_association":"NONE","body":"I'm having trouble figuring out how to define the following Pod with the client code. Is that possible?\r\n\r\n\r\n```\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  name: nginx\r\n  namespace: buildeng\r\nspec:\r\n  affinity:\r\n    nodeAffinity:\r\n      requiredDuringSchedulingIgnoredDuringExecution:\r\n        nodeSelectorTerms:\r\n        - matchExpressions:\r\n          - key: customer\r\n            operator: In\r\n            values:\r\n            - buildeng\r\n  containers:\r\n  - name: nginx\r\n    image: nginx\r\n  tolerations:\r\n  - key: \"customer\"\r\n    operator: \"Equal\"\r\n    value: \"buildeng\"\r\n    effect: \"NoSchedule\"\r\n```"},"comment":{"url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/comments/376101291","html_url":"https://github.com/fabric8io/kubernetes-client/issues/826#issuecomment-376101291","issue_url":"https://api.github.com/repos/fabric8io/kubernetes-client/issues/826","id":376101291,"user":{"login":"matthyx","id":20683409,"avatar_url":"https://avatars1.githubusercontent.com/u/20683409?v=4","gravatar_id":"","url":"https://api.github.com/users/matthyx","html_url":"https://github.com/matthyx","followers_url":"https://api.github.com/users/matthyx/followers","following_url":"https://api.github.com/users/matthyx/following{/other_user}","gists_url":"https://api.github.com/users/matthyx/gists{/gist_id}","starred_url":"https://api.github.com/users/matthyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthyx/subscriptions","organizations_url":"https://api.github.com/users/matthyx/orgs","repos_url":"https://api.github.com/users/matthyx/repos","events_url":"https://api.github.com/users/matthyx/events{/privacy}","received_events_url":"https://api.github.com/users/matthyx/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T09:20:33Z","updated_at":"2018-03-26T09:20:33Z","author_association":"NONE","body":"Thanks @piyush1594 I will try this in my code using the client. I will post errors here if I get any."}}
{"actor":{"display_login":"matthyx"}}