metadata.ownerReferences isn't a field that can be queried w/ field selectors, so to get all the items created by a CRD it would required polling all kinds/all resources which sucks.
The 'reverse index' or 'inventory' would include track all the resources created by this CRD. inspiration
spec:
resources:
- selfLink: "/v1/pods/namespace/default/foo"
# or
- name: foo
namespace: default
kind: Pod
apiVersion: v1
This could be useful for looking up resources, not necessary for bonny itself, but it could be a nice helper for a controller that needed to find resources that it created.
This won't be needed for deletion once #49 is implemented, as garbage collection will be handled by k8s.
metadata.ownerReferencesisn't a field that can be queried w/ field selectors, so to get all the items created by a CRD it would required polling all kinds/all resources which sucks.The 'reverse index' or 'inventory' would include track all the resources created by this CRD. inspiration
This could be useful for looking up resources, not necessary for bonny itself, but it could be a nice helper for a controller that needed to find resources that it created.
This won't be needed for deletion once #49 is implemented, as garbage collection will be handled by k8s.