- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.4k
 
Description
What happened (please include outputs or screenshots):
Attempting to use client.EventsV1beta1Api().list_event_for_all_namespaces() results in an Exception
...
File "C:\Users\lameg\miniforge3\lib\site-packages\kubernetes\client\models\v1beta1_event.py", line 290, in event_time
raise ValueError("Invalid value for event_time, must not be None")
ValueError: Invalid value for event_time, must not be None
What you expected to happen:
Get a list of events
How to reproduce it (as minimally and precisely as possible):
Run the following code snippet targeting a minikube cluster:
from kubernetes import config, client
config.load_kube_config()
api = client.EventsV1beta1Api()
print(api.list_event_for_all_namespaces())Anything else we need to know?:
A workaround was provided at https://stackoverflow.com/a/72591958/401041 .
Environment:
- 
Kubernetes version (
kubectl version):
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:46:05Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"windows/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.3", GitCommit:"816c97ab8cff8a1c72eccca1026f7820e93e0d25", GitTreeState:"clean", BuildDate:"2022-01-25T21:19:12Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"linux/amd64"} - 
OS
Windows 10 - 
Python version (
python --version)
Python 3.9.6 - 
Python client version (
pip list | grep kubernetes)
kubernetes 23.6.0