vmware-archive / operator-builder

A Kubebuilder plugin to accelerate the development of Kubernetes operators
MIT License
41 stars 6 forks source link

feat: specify ready condition for a resource #293

Open scottd018 opened 2 years ago

scottd018 commented 2 years ago

Not all resources are core Kubernetes resources, and because we manage dependencies, we need to know when certain conditions of a resource are met. Because of this, we should allow users to specify ready conditions for their resources. A good example of this is within the operator-builder project itself using the status.ready = True concept.

Loose requirements are:

  1. This is a marker for each resource.
  2. Might look something like this:
+operator-builder:resource:readyCondition:field=status.ready,condition=true