-
Notifications
You must be signed in to change notification settings - Fork 51
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
sendInitialEvents
error
#203
Comments
I guess the parameter If you're sure you don't need |
Thank you.
|
It's very odd that it would work in minikube but not another cluster. Are all of the clusters the same version? It's possible that this error is tied to specific Kubernetes versions. |
my k8s which cannot run:
minikube:
the another k8s cluster that can run the code: in fact it is a k3s server, for some reason I've not been able to get to this cluster lately and I don't know it's version. |
Minikube version is 1.26.3 for your code. Maybe we can release a new version of the C client for Kubernetes 1.28.x and try again. I'm not sure the new client can work with your code, so if you need a quick solution, please consider removing sending |
How to watch resource with generic client? I only seee list, patch, delete, replace and create. |
Removing |
As @brendandburns said, it should be due to the different versions of Kubernetes API server. Removing Please try again after v0.8.0 released. #204 |
v0.8.0 released. Can you try with your code now ? |
Ok, I will try it this evening. |
It reports the same error:
I am not sure if it is related with apiServer:
extraArgs:
authorization-mode: Node,RBAC
feature-gates: WatchList=true
timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta3
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controlPlaneEndpoint: cluster-endpoint:6443
controllerManager: {}
dns: {}
etcd:
local:
dataDir: /var/lib/etcd
imageRepository: registry.k8s.io
kind: ClusterConfiguration
kubernetesVersion: v1.28.1
networking:
dnsDomain: cluster.local
serviceSubnet: 10.96.0.0/12
scheduler: {} And use Now I can use the |
WrappedEndpointsList endpointsList(CoreV1API_listNamespacedEndpoints(watchEndpointApiClient.get(),
queryNamespace.data(),
nullptr,
0,
nullptr,
nullptr,
nullptr,
0,
"0",
"NotOlderThan",
1,
0,
1),
v1_endpoints_list_free); This code can achive what I want: no error, and report the endpoints that already exist. |
Hello, I have the same error when I try to run c/examples/list_pod/main.c , the program return
I have tried it but still have the same error. How can i fixed this problem? |
code:
WrappedEndpointsList endpointsList(CoreV1API_listNamespacedEndpoints(watchEndpointApiClient.get(), queryNamespace.data(), nullptr, 0, nullptr, nullptr, nullptr, 0, nullptr, nullptr, 0, 0, 1), v1_endpoints_list_free);
return:
I have set
sendInitialEvents
to 0, why there is error related with it.I can run the code on minikube, but cannot run it on a real k8s cluster.
The text was updated successfully, but these errors were encountered: