Skip to content

Add a reverse index of a CRDs resources #88

@coryodaniel

Description

@coryodaniel

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions