-
Notifications
You must be signed in to change notification settings - Fork 819
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
[BUG] generation
and observedGeneration
of CloneSet in karmada is not aligned.
#4866
Comments
Sorry, Deployment generation has another bug. ➜ ~ use_karmada
➜ ~ k get clone -oyaml | grep -i generation
generation: 2
observedGeneration: 4
generation: 5
observedGeneration: 4
➜ ~ |
generation
and observedGeneration
of karmada resource is not aligned.generation
and observedGeneration
of karmada resource is not aligned.
generation
and observedGeneration
of karmada resource is not aligned.generation
and observedGeneration
of CloneSet in karmada is not aligned.
If there is another bug, we can track it with a new issue.
I got it. This is because we did not implement a state collection resource interpreter for the cloneset resource.
|
@XiShanYongYe-Chang here's bug Line 72 in 6e5a602
|
@XiShanYongYe-Chang yes, I know. BTW, Deployment generation bug and its fix is here: #4867 |
Thanks a lot~ |
//TODO: CloneSet generation logic will be fixed later. @XiShanYongYe-Chang @yike21 |
Hi @veophi I've had a look at PR #4867, but I don't understand what the problem was with the previous Deployment status observedGeneration. I understand that the previous logic was to set observedGeneration directly to deployment generation when the status was aggregated, as described in the comments. The current behavior may be more rigorous. The waits for the Deployment state in the member cluster to be ready before proceeding with the collection. |
Do you have wechat? |
@XiShanYongYe-Chang If you always set |
Thanks, I get it. This is a common problem with workload resources. Can you help list all the resources that need to be handled and then we can complete them one by one. How about creating an umbrella issue? |
thirdparty resource
native resource
There are a number of third-party resources that need to be modified to aggregate |
Thanks~ @yike21 Can you help create an umbrella issue to track the task? Each resource to be processed can be processed as a subtask. |
OK, I will do it soon. |
What happened:
status.bservedGeneration
of federated resource (CloneSet) does not align with itsmetadata.generation
.What's the meaning of
status.bservedGeneration
?However, Karmada uses
status.bservedGeneration
of member resource as itsstatus.bservedGeneration
in federated resource, it's incorrect.What you expected to happen:
status.bservedGeneration
of federated resource (CloneSet) aligns with itsmetadata.generation
if its all member resources havestatus.observedGeneration >= metadata.generation
.How to reproduce it (as minimally and precisely as possible):
Update any federated Deployment spec and watch its generation&observedGeneration.
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: