Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.EventsV1beta1Api().list_namespaced_event 无法获取返回结果 #1221

Open
xiaowuwu163 opened this issue Aug 1, 2020 · 1 comment
Open

Comments

@xiaowuwu163
Copy link

@xiaowuwu163 xiaowuwu163 commented Aug 1, 2020

获取kube-apiserver 返回的结果集中,event_time 参数本身为空,而V1beta1Event 对象创建时,event_time属性默认必须传入event_time参数不为None才能创建,最终无法转转换为V1beta1Event 对象

@roycaihw
Copy link
Member

@roycaihw roycaihw commented Aug 7, 2020

IIUC you're saying that kube-apiserver responded Event object with empty event_time to the list_namespaced_event request. As a result this python client failed to parse the response because event_time is a required field.

This sounds like another occurrence of kubernetes-client/gen#52. The fix needs to be done in upstream Kubernetes. kube-apiserver should either respond an event_time that is not null, or the field should be marked as optional instead of required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.