-
Notifications
You must be signed in to change notification settings - Fork 826
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
start many informer,pod resourceVersion will duplicate base64。 #3377
Comments
Thanks~, In favor of #3376 |
Yes, we only convert the resourceVersion in List, not items. Such as: kind: PodList
apiVersion: v1
metadata:
resourceVersion: <= converted RV
items:
- metadata:
name: pod1
resourceVersion: <= original RV Mostly we use the List rv, rather than item rv, such as List&Watch. So we don't convert it. If you have the case using rv in items, welcome your pr to supplement it. |
when i use informer. |
In k8s doc https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions: |
if i use informer like informers.NewSharedInformerFactory(clientset, time.Second*30). step2 to step3, pod without resourceVersion change,but client receive resourceVersion is changed |
I will test it at my free time. Thanks for your feedback. |
Hi @niuyueyang1996, with the integration of #3376 , the current issue is closed. For the get/list resourceVersion, you can create an issue to trace the issue. |
|
What happened:
when i start two or more informer,i see pod resourceVersion changed
1.659432795
2.eyJ3eC10ZXN0IjoiNjU5NDMyNzk1In0
{"wx-test":"659432795"}
3.eyJ3eC10ZXN0IjoiZXlKM2VDMTBaWE4wSWpvaU5qVTVORE15TnprMUluMCJ9
{"wx-test":"eyJ3eC10ZXN0IjoiNjU5NDMyNzk1In0"}
if i list pod,pod resourceVersion is number,like 659432795,i don't understand why not use base64 code?
if i start one watcher to watch pod ,pod resourceVersion is base64 code like eyJ3eC10ZXN0IjoiNjU5NDMyNzk1In0
if i start more than one watcher to watch pod,pod resourceVersion maybe is wrong base64 code like eyJ3eC10ZXN0IjoiZXlKM2VDMTBaWE4wSWpvaU5qVTVORE15TnprMUluMCJ9. this is bug.
What you expected to happen:
list pod resourceVersion is base64.
start more than one watcher to wach pod,pod resourceVersion only base64 one times.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: