Skip to content

[question] how to watch for a CRD in any namespace? #1338

Answered by lknite
lknite asked this question in Q&A
Discussion options

You must be logged in to vote

There are instances of the crd in different namespaces, so may appear in multiple namespaces.

  1. I'd like to just watch all of the crds wherever they are on the cluster with one watch command similar to how one of the examples lets you watch all pods in all namespaces.
  2. It would also be nice if after I started the watch, if someone created a namespace & then created an instance of the crd, that that would aso result in an ADD event. However, if I need to also watch for namespaces to be created & restart the CRD watch I could implement that... though it seems like "watch for a crd in any namespace" is something that might already exist.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@tg123
Comment options

@lknite
Comment options

@lknite
Comment options

Answer selected by lknite
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
Converted from issue

This discussion was converted from issue #1337 on July 12, 2023 17:39.