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

skipped Event api does not take effect #906

Closed
XiShanYongYe-Chang opened this issue Nov 2, 2021 · 17 comments · Fixed by #911
Closed

skipped Event api does not take effect #906

XiShanYongYe-Chang opened this issue Nov 2, 2021 · 17 comments · Fixed by #911
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.

Comments

@XiShanYongYe-Chang
Copy link
Member

XiShanYongYe-Chang commented Nov 2, 2021

What happened:

When I set --skipped-propagating-apis to karmada-controller-manager such as:

- --skipped-propagating-apis=v1/Event

It dose not take effect. In karmada-controller-manager logs file, still have Event info with detector:

detector.go:721] Add object(events.k8s.io/v1, kind=Event, default/serviceimports.multicluster.x-k8s.io-customresourcedefinition.16b3b14e05fa7351) to waiting list, length of list is: 207

What you expected to happen:

The setting take effect.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Karmada version: master branch
  • Others:
@XiShanYongYe-Chang XiShanYongYe-Chang added the kind/bug Categorizes issue or PR as related to a bug. label Nov 2, 2021
@XiShanYongYe-Chang
Copy link
Member Author

/help

@karmada-bot
Copy link
Collaborator

@XiShanYongYe-Chang:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@karmada-bot karmada-bot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Nov 2, 2021
@Charlie17Li
Copy link
Contributor

/assign

@dddddai
Copy link
Member

dddddai commented Nov 2, 2021

The flag works fine in my environment, you specified v1/Event but not events.k8s.io/v1/Event

@XiShanYongYe-Chang
Copy link
Member Author

Hi @dddddai , the log contains both v1/Event and events.k8s.io/v1/Event:

I1102 09:41:59.395795       1 detector.go:202] Reconciling object: events.k8s.io/v1, kind=Event, karmadatest-gbc/hello-2h9-serviceexport.16b3b1526f3ffe0f
I1102 09:41:59.495415       1 detector.go:202] Reconciling object: v1, kind=Event, karmadatest-gbc/hello-2h9-serviceexport.16b3b1526f3ffe0f

@XiShanYongYe-Chang
Copy link
Member Author

# kubectl  get events -n karmada-es-member1 nginx-687f7fb96f.16b3b640ae370302 -oyaml
apiVersion: v1
kind: Event
lastTimestamp: "2021-11-02T11:11:18Z"
message: Sync work (nginx-687f7fb96f) to cluster(member1) successful.
...

@XiShanYongYe-Chang
Copy link
Member Author

I try with --skipped-propagating-apis=events.k8s.io/v1/Event, but it doesn't work on my side.

@dddddai
Copy link
Member

dddddai commented Nov 2, 2021

That's flaky, there's no such log in my environment

BTW, why is there a event in karmada-es-member1?
Only works exist in this namespace, don't they? Please correct me if I'm wrong

@XiShanYongYe-Chang
Copy link
Member Author

why is there a event in karmada-es-member1?

Yeah, I create a deployment and propagate it to member clusters:

# kubectl  get work -A
NAMESPACE            NAME               AGE
karmada-es-member1   nginx-687f7fb96f   31m
karmada-es-member2   nginx-687f7fb96f   31m

@dddddai
Copy link
Member

dddddai commented Nov 2, 2021

Let me fetch upstream and try again...

@pigletfly
Copy link
Contributor

Event belongs to corev1.I use - --skipped-propagating-apis=v1/Node,Event,Pod,PersistentVolume,ConfigMap,Endpoints,PersistentVolumeClaim;apiextensions.k8s.io/v1;events.k8s.io/v1beta1;discovery.k8s.io/v1beta1;rbac.authorization.k8s.io/v1 works for me

@pigletfly
Copy link
Contributor

@XiShanYongYe-Chang can you try config above ?

@dddddai
Copy link
Member

dddddai commented Nov 2, 2021

Oh, after I fetched upstream, this happens, I suspect it's because this commit deletes skippedResourceConfig.Parse when initializing karmada-controller-manager, which makes the flag NOT work

This change doesn't make sense to me.

@RainbowMango
Copy link
Member

Right, #881 omitted the parse() action, so all configurations made by --skipped-propagating-apis are ignored.
cc @learner0810

@learner0810
Copy link
Member

@RainbowMango This issue has been fixed. @XiShanYongYe-Chang I'm really sorry for the trouble caused to you by this problem

@RainbowMango
Copy link
Member

No worries, I didn't notice it as well.

@XiShanYongYe-Chang
Copy link
Member Author

I'm really sorry for the trouble caused to you by this problem

It's okay, I just wanted to try this feature. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants