Skip to content

How can I get some resources with the event type? #1312

Answered by clux
terassyi asked this question in Q&A
Discussion options

You must be logged in to vote

Hey. The finalizer fn is to help abstract the management of Kubernetes finalizers, not to give precise watch events.
There are some docs on https://kube.rs/controllers/gc/#finalizers which talks about the secret_syncer example.

I think your error is passing an Api:all to finalizer, but you have a namespaced resource. The Api::all can only be used to view events across namespaces, not to patch namespaced resources (see #1030). Note how secret_syncer is creating an Api::namespaced for the namespace of the object.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@terassyi
Comment options

Answer selected by terassyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants