Skip to content

How to lookup/list other objects in a webhook callback? #2433

Closed Answered by camilamacedo86
13126690189 asked this question in Support
Discussion options

You must be logged in to vote

It seems that you are looking for

  • Validation During Creation: They want to ensure that when an object (let's call it ObjectA) of their custom resource is created, it references another valid object (let's call it ObjectB). Basically, before ObjectA is created, they want to ensure ObjectB exists.
  • Validation Before Deletion: Before deleting an object of their custom resource (let's say ObjectA again), they want to make sure no other objects (e.g., ObjectC, ObjectD, etc.) are referencing it.

Here's a suggested answer:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants